cmd

package
v5.0.1-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = map[string]*f.Command{}

Functions

func MessageCreate

func MessageCreate(s *dsg.Session, m *dsg.MessageCreate)
# MessageCreate

* The world's bigest switch statment * * This is a very big switch statment run commands. It reads all the messages in * all the servers its in, determines which ones are commands, and then sees * what in all the commands mean and then takes the appropriate action. * * Parameters: * - s (type *discordgo.Session) | The current running discord session, * (discordgo needs that always apparently) * - m (type *discordgo.Message) | The message thats to be acted upon. * * TODO: See if it can be made so it doesn't have to read every single message * ever. * * TODO: Break this one function up to smaller functions that only run if a user * has a certain role * * NOTE: Please delegate what the command actually does to a function. This * method should only be used to determine what the user is acutally * trying to do.

Types

This section is empty.

Jump to

Keyboard shortcuts

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