modules

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

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 SendEvent

func SendEvent(eventType discord.EventType, event interface{})

SendEvent receives a discord api event

func SpawnTasks

func SpawnTasks(s *discord.Session)

SpawnTasks spawns all tasks provided by modules

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL