class

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")
Source

Instance methods

cleanup

Gets called upon exit. It can be used to perform any necessary cleanup.

Source
filename
Source
filename=(filename : String)
Source
init

Gets called when the bot is initialized. This can be used for setup if you need access to the bot instance.

Source