mid day commit
This commit is contained in:
3
main.go
3
main.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user