From 3d174fd4f05f1f41b527d40b350ad2e10d8171a0 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 6 May 2021 08:36:42 -0400 Subject: [PATCH] Fix parts[] for dbeug set --- commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 149cc06..2e2ad4f 100644 --- a/commands.go +++ b/commands.go @@ -102,7 +102,7 @@ func Commands(b BotCommand) bool { func Debug(b BotCommand) bool { defer log.PanicSafe() - level, err := strconv.Atoi(b.Parts[0]) + level, err := strconv.Atoi(b.Parts[2]) if err != nil { return false }