remove more slash commands
This commit is contained in:
@ -36,7 +36,8 @@ type (
|
||||
}
|
||||
|
||||
HandlerConfig struct {
|
||||
Reaction ReactionConfig `mapstructure:"reaction"`
|
||||
Reaction ReactionConfig `mapstructure:"reaction"`
|
||||
Weather command.WeatherConfig `mapstructure:"weather"`
|
||||
}
|
||||
|
||||
ReactionConfig struct {
|
||||
@ -99,6 +100,12 @@ func main() {
|
||||
dg.AddHandler(command.RollHandler)
|
||||
dg.AddHandler(command.RouletteHandler)
|
||||
|
||||
h := command.NewWeatherHandler(C.Handler.Weather)
|
||||
dg.AddHandler(h.Handle)
|
||||
|
||||
dg.AddHandler(command.NewCoinHandler().Handle)
|
||||
dg.AddHandler(command.NewTimeHandler().Handle)
|
||||
|
||||
dg.Identify.Intents = discordgo.IntentsGuildMessages
|
||||
|
||||
err = dg.Open()
|
||||
|
Reference in New Issue
Block a user