Documentation ¶
Index ¶
- type Engine
- func (k *Engine) AddCommand(command command.Executor)
- func (k *Engine) AddCommandHandler(handler *command.Handler)
- func (k *Engine) AddEventListener(ev interface{})
- func (k *Engine) AddEventOnceListener(ev interface{})
- func (k *Engine) AddLoggingFile(name string)
- func (k *Engine) Build() error
- func (k *Engine) Close() error
- func (k *Engine) CreateInterruptSignal()
- func (k *Engine) DropCommand(name string)
- func (k *Engine) GetShard(shardId int) (*discordgo.Session, error)
- func (k *Engine) GetShardCount() int
- func (k *Engine) IsKumaInfo() bool
- func (k *Engine) RemoveCommandHandler(handler *command.Handler)
- func (k *Engine) SetIntent(intent discordgo.Intent)
- func (k *Engine) SetKumaInfo(value bool)
- func (k *Engine) SetMode(m mode.EngineMode)
- func (k *Engine) SetShardCount(shardCount int)
- func (k *Engine) SetToken(token string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶ added in v2.1.0
type Engine struct { Token string Session *discordgo.Session // contains filtered or unexported fields }
func (*Engine) AddCommand ¶ added in v2.1.0
AddCommand Add a new command in inner handler
func (*Engine) AddCommandHandler ¶ added in v2.1.0
AddCommandHandler Add a new command handler
func (*Engine) AddEventListener ¶ added in v2.1.0
func (k *Engine) AddEventListener(ev interface{})
AddEventListener Add a new event listener
func (*Engine) AddEventOnceListener ¶ added in v2.1.0
func (k *Engine) AddEventOnceListener(ev interface{})
AddEventOnceListener Add a new event listener once
func (*Engine) AddLoggingFile ¶ added in v2.1.0
AddLoggingFile Add a new logging file
func (*Engine) CreateInterruptSignal ¶ added in v2.1.0
func (k *Engine) CreateInterruptSignal()
CreateInterruptSignal Create an interrupt signal
func (*Engine) DropCommand ¶ added in v2.1.0
DropCommand Remove a command in inner handler
func (*Engine) GetShardCount ¶ added in v2.1.0
GetShardCount Get the bot shard count
func (*Engine) IsKumaInfo ¶ added in v2.1.0
IsKumaInfo Check if the kuma info command is enabled
func (*Engine) RemoveCommandHandler ¶ added in v2.1.0
RemoveCommandHandler Remove a command handler
func (*Engine) SetKumaInfo ¶ added in v2.1.0
SetKumaInfo Set the kuma info command
func (*Engine) SetMode ¶ added in v2.1.0
func (k *Engine) SetMode(m mode.EngineMode)
SetMode Set the engine mode
func (*Engine) SetShardCount ¶ added in v2.1.0
SetShardCount Set the bot shard count
Click to show internal directories.
Click to hide internal directories.