remove more slash commands

This commit is contained in:
2022-07-27 21:58:38 -05:00
parent 348cd543fc
commit b1824f8d33
3 changed files with 36 additions and 63 deletions

View File

@ -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()