Documentation
¶
Index ¶
- Constants
- type Engine
- func (k *Engine) AddAct(a *discordgo.Activity)
- func (k *Engine) AddActs(a ...*discordgo.Activity)
- func (k *Engine) AddEvent(event interface{}) func()
- func (k *Engine) AddEventOnce(event interface{}) func()
- func (k *Engine) AddLoggingFile(name string)
- func (k *Engine) Create() (*Engine, error)
- func (k *Engine) CreateIntents(intent discordgo.Intent) (*Engine, error)
- func (k *Engine) CreateInterruptSignal()
- func (k *Engine) DisableKumaInfo()
- func (k *Engine) GetActDelay() int
- func (k *Engine) InitActs()
- func (k *Engine) SetAct(a *discordgo.Activity)
- func (k *Engine) SetActDelay(second int)
- func (k *Engine) SetActs(a ...*discordgo.Activity)
- func (k *Engine) Start() error
- func (k *Engine) Stop() error
- func (k *Engine) Version() string
Constants ¶
View Source
const KUMA_ENGINE_VERSION = "v1.5.1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct { Token string Session *discordgo.Session // contains filtered or unexported fields }
func (*Engine) AddEvent ¶
func (k *Engine) AddEvent(event interface{}) func()
AddEvent Add discord event handler
func (*Engine) AddEventOnce ¶
func (k *Engine) AddEventOnce(event interface{}) func()
AddEventOnce Add discord event handler once
func (*Engine) AddLoggingFile ¶ added in v1.4.0
func (*Engine) CreateIntents ¶
CreateIntents create engine with discord intents
func (*Engine) CreateInterruptSignal ¶
func (k *Engine) CreateInterruptSignal()
CreateInterruptSignal Creating Ctrl+C interrupt signal
func (*Engine) DisableKumaInfo ¶
func (k *Engine) DisableKumaInfo()
DisableKumaInfo Disable kumainfo command
func (*Engine) GetActDelay ¶
GetActDelay Get activity change time
func (*Engine) SetActDelay ¶
SetActDelay Set activity change time
Click to show internal directories.
Click to hide internal directories.