Documentation ¶
Index ¶
- Variables
- func InitStore() error
- func RunCommand(s *discordgo.Session, m *discordgo.MessageCreate, cmd string)
- func RunTask(s *discord.Session, name string, taskFn func(*discord.Session, string) error, ...)
- func SendEvent(eventType discord.EventType, event interface{})
- func SpawnTasks(s *discord.Session)
Constants ¶
This section is empty.
Variables ¶
View Source
var Prefix = make(map[string]string)
Prefix contains the prefix for each server
Functions ¶
func InitStore ¶
func InitStore() error
InitStore calls store.InitSQLTables with all registered modules
func RunCommand ¶
func RunCommand(s *discordgo.Session, m *discordgo.MessageCreate, cmd string)
RunCommand sends a created message to a command router and waits for the response
func RunTask ¶
func RunTask(s *discord.Session, name string, taskFn func(*discord.Session, string) error, call int)
RunTask runs a task and checks for errors
func SpawnTasks ¶
SpawnTasks spawns all tasks provided by modules
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.