Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.