Tourmaline::JsonPersistence
Inherits Tourmaline::HashPersistence < Tourmaline::Persistence < Reference < Object
Persists users and chats in a json file. This isn't the most efficient, but it is easy to set up for testing.
Constructors
new(filename = "tourmaline_persistence.json")
SourceInstance methods
filename
Sourceinit
Gets called when the bot is initialized. This can be used for setup if you need access to the bot instance.