Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgendaloConfig ¶
type AgendaloConfig struct {
// Command is the external command (with optional args) that reads text
// from stdin and returns JSON events.
Command string `toml:"command"`
// RateLimit is the max number of add interactions per sender per hour.
RateLimit int `toml:"rate_limit"`
}
AgendaloConfig holds settings for the agendalo handler.
type Allow ¶
type Allow struct {
Groups []AllowEntry `toml:"groups"`
Users []AllowEntry `toml:"users"`
}
Allow defines the allow lists for groups and users. Empty lists mean deny all.
type AllowEntry ¶
AllowEntry represents an allowed JID with an optional display name.
type Config ¶
type Config struct {
Trigger string `toml:"trigger"`
LogLevel string `toml:"log_level"`
Allow Allow `toml:"allow"`
Agendalo AgendaloConfig `toml:"agendalo"`
Plugins PluginsConfig `toml:"plugins"`
}
Config represents the bot configuration.
type PluginsConfig ¶
type PluginsConfig struct {
// AllowedCommands is a whitelist of commands that WASM plugins can execute.
AllowedCommands []string `toml:"allowed_commands"`
}
PluginsConfig holds settings for the WASM plugin system.
Click to show internal directories.
Click to hide internal directories.