forked from chanbakjsd/TerraOceanPlugin
45 lines
752 B
Go
45 lines
752 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,
|
|
},
|
|
Command{
|
|
Name: "!votesuggest",
|
|
Handler: voteSuggestion,
|
|
},
|
|
}
|