Documentation ¶
Index ¶
- type Bot
- func (d *Bot) Description() string
- func (d *Bot) Disable()
- func (d *Bot) Enable()
- func (d *Bot) Execute(pluginName string, update soundtouch.Update, speaker soundtouch.Speaker)
- func (d *Bot) IsEnabled() bool
- func (d *Bot) Name() string
- func (d *Bot) SampleConfig() string
- func (d *Bot) Terminate() bool
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { Config Plugin soundtouch.PluginFunc // contains filtered or unexported fields }
Bot describes the plugin. It has a Config to store the configuration Plugin the plugin function
func NewTelegramLogger ¶
NewTelegramLogger creates a new Logger plugin with the configuration
func (*Bot) Description ¶
Description returns a string explaining the purpose of this plugin
func (*Bot) SampleConfig ¶
SampleConfig returns text explaining how plugin should be configured
type Config ¶
type Config struct { Speakers []string `toml:"speakers"` IgnoreMessages []string `toml:"ignore_messages"` APIKey string `toml:"apiKey"` AuthorizedSender []string `toml:"authorizedSenders"` AuthKey string `toml:"authKey"` }
Config contains the configuration of the plugin Speakers list of SpeakerNames the handler is added. All if empty IgnoreMessages a list of message types to be ignored APIKey for the telegram bot
Click to show internal directories.
Click to hide internal directories.