Documentation ¶
Index ¶
- Variables
- func CheckIfPluginDisabled(name, state string) bool
- func DisablePlugin(plugin string) bool
- func EnablePlugin(plugin string) bool
- func KeyOf(p TelegramPlugin) string
- func RegisterCommand(command string, description string, roles []string, callback CommandCallback)
- func RegisterPlugin(p TelegramPlugin)
- func UnregisterCommand(command string)
- type Command
- type CommandCallback
- type TelegramPlugin
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CheckIfPluginDisabled ¶
func RegisterCommand ¶
func RegisterCommand(command string, description string, roles []string, callback CommandCallback)
Register a Command exported by a plugin
func UnregisterCommand ¶
func UnregisterCommand(command string)
UnRegister a Command exported by a plugin
Types ¶
type Command ¶
type Command struct { Description string `sql:"description"` Roles map[string]bool `sql:"roles"` Callback CommandCallback }
Command ...
func (Command) IsAllowedForRole ¶
type CommandCallback ¶
Click to show internal directories.
Click to hide internal directories.