From 4d8e33058a5b9557dd3d614b20ed516ecbfd2e19 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 6 May 2021 08:37:26 -0400 Subject: [PATCH] Fix parts[] for dbeug set --- discordMessage.go | 1 + 1 file changed, 1 insertion(+) diff --git a/discordMessage.go b/discordMessage.go index 193d497..dfd3204 100644 --- a/discordMessage.go +++ b/discordMessage.go @@ -45,6 +45,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { Message: m, Parts: strings.Split(m.Content, " ")[1:], } + log.LogDebug("%+v", b.Parts) for _, cmd := range commands { for _, keyword := range cmd.Keywords { log.LogDebug("Checking if %+v contains %+v", m.Content, keyword)