41 lines
684 B
Go
41 lines
684 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,
|
|
},
|
|
Command{
|
|
Name: "!setmcusername",
|
|
Handler: updateMinecraftUsername,
|
|
},
|
|
}
|