Reorganize packages

This commit is contained in:
2022-08-24 09:06:00 -05:00
parent 6c0000d409
commit ce689146de
11 changed files with 248 additions and 100 deletions

View File

@ -11,8 +11,7 @@ import (
"syscall"
"git.kill0.net/chill9/beepboop/bot"
handler "git.kill0.net/chill9/beepboop/bot/handlers"
"git.kill0.net/chill9/beepboop/command"
"git.kill0.net/chill9/beepboop/bot/handler"
"git.kill0.net/chill9/beepboop/lib"
"github.com/bwmarrin/discordgo"
@ -24,14 +23,14 @@ import (
var (
C bot.Config
handlers []command.CommandHandler = []command.CommandHandler{
command.NewCoinHandler(),
command.NewPingHandler(),
command.NewRollHandler(),
command.NewRouletteHandler(),
command.NewTimeHandler(),
command.NewVersionHandler("version"),
command.NewWeatherHandler(),
handlers []bot.MessageCreateHandler = []bot.MessageCreateHandler{
handler.NewCoinHandler(),
handler.NewPingHandler(),
handler.NewRollHandler(),
handler.NewRouletteHandler(),
handler.NewTimeHandler(),
handler.NewVersionHandler("version"),
handler.NewWeatherHandler(),
handler.NewReactionHandler(),
}
)