Configuration

Configuration for bots is stored in a state event of type me.merovingian.config and state key equal to the string “for:1 followed by the Matrix ID of the bot to be configured. For example, if the bot had a Matrix ID of @bot:example.com, then the state key would be for:@bot:example.com.

The exact contents of the configuration object depends on the bot, with the exception that configuration for effects will be an object with an action property that describes what causes it should react to, and what it should do in response. For more information, see the section on configuring effects.


1

The for: prefix is to avoid the auth rule that prevents other users from setting a state event with a state key equal to another user’s Matrix ID.