Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandInformation ¶
CommandInformation describes a command in available for a plugin.
type IPlugin ¶
type IPlugin interface { GetCommands() []CommandInformation GetHelpText() string }
IPlugin interface used by qilbot.
type Plugin ¶
type Plugin struct { IPlugin Name string Description string Qilbot *Qilbot Commands []CommandInformation }
Plugin describes a plugin in qilbot.
func (*Plugin) GetCommands ¶
func (plugin *Plugin) GetCommands() []CommandInformation
GetCommands generic implementation for getting commands.
func (*Plugin) GetHelpText ¶
GetHelpText generic implemetation for help text.
type Qilbot ¶
Qilbot representation of the instance of qilbot.
func New ¶
func New(config *QilbotConfig) (bot *Qilbot, err error)
New creates a new instance of Qilbot
func (*Qilbot) AddHandler ¶
func (qilbot *Qilbot) AddHandler(handler interface{})
AddHandler Adds an event handler for discord events
func (*Qilbot) AddPlugin ¶
AddPlugin Add a plugin to qilbot that will be initialised with a instance for the discord session.
func (*Qilbot) InDebugMode ¶
InDebugMode returns true if qilbot is running in debug mode.
Click to show internal directories.
Click to hide internal directories.