This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
2019-11-27 10:40:31 +07:00
|
|
|
package commands
|
|
|
|
|
|
|
|
import "github.com/bwmarrin/discordgo"
|
|
|
|
|
|
|
|
type command struct {
|
|
|
|
Name string
|
|
|
|
Handler func(s *discordgo.Session, args []string, m *discordgo.MessageCreate) error
|
|
|
|
}
|
|
|
|
|
|
|
|
var list = []command{
|
2020-01-04 14:15:50 +07:00
|
|
|
command{
|
|
|
|
Name: "admin",
|
|
|
|
Handler: handleAdminCommand,
|
|
|
|
},
|
2019-11-27 10:40:31 +07:00
|
|
|
command{
|
|
|
|
Name: "level",
|
|
|
|
Handler: handleLevelCommand,
|
|
|
|
},
|
|
|
|
command{
|
|
|
|
Name: "shard",
|
|
|
|
Handler: handleShardCommand,
|
|
|
|
},
|
|
|
|
command{
|
|
|
|
Name: "prestige",
|
|
|
|
Handler: handlePrestigeCommand,
|
|
|
|
},
|
|
|
|
command{
|
|
|
|
Name: "star",
|
|
|
|
Handler: handleStarCommand,
|
|
|
|
},
|
2019-11-27 12:16:32 +07:00
|
|
|
command{
|
|
|
|
Name: "version",
|
|
|
|
Handler: handleVersionCommand,
|
|
|
|
},
|
2019-11-27 10:40:31 +07:00
|
|
|
}
|