mid day commit

This commit is contained in:
2025-12-08 13:31:47 +01:00
parent e045d0d01f
commit 06c17cc2e9
7 changed files with 245 additions and 8 deletions

View File

@@ -35,8 +35,9 @@ func main() {
h := handler.New()
h.Command("/ping", commands.PingHandler)
h.Command("/sync", commands.SyncHandler)
if err = b.SetupBot(h, bot.NewListenerFunc(b.OnReady) /*handlers.MessageHandler(b)*/); err != nil {
if err = b.SetupBot(h, bot.NewListenerFunc(b.OnReady)); err != nil {
slog.Error("Failed to setup bot", slog.Any("err", err))
os.Exit(-1)
}