forked from chanbakjsd/TerraOceanPlugin
37 lines
605 B
Go
37 lines
605 B
Go
package modules
|
|
|
|
import "github.com/bwmarrin/discordgo"
|
|
|
|
type CommandHandler func(s *discordgo.Session, m *discordgo.MessageCreate, commands []string)
|
|
type Command struct {
|
|
Name string
|
|
Handler CommandHandler
|
|
}
|
|
|
|
var Commands = []Command{
|
|
Command{
|
|
Name: "!sendas",
|
|
Handler: sendAs,
|
|
},
|
|
Command{
|
|
Name: "!editas",
|
|
Handler: editAs,
|
|
},
|
|
Command{
|
|
Name: "!peektrust",
|
|
Handler: viewTrustLevel,
|
|
},
|
|
Command{
|
|
Name: "!invite",
|
|
Handler: createInvite,
|
|
},
|
|
Command{
|
|
Name: "!validate",
|
|
Handler: checkUseInvite,
|
|
},
|
|
Command{
|
|
Name: "!trust",
|
|
Handler: changeTrust,
|
|
},
|
|
}
|