From f94888379b2443a672a91c18fed4e8c24b7cf46b Mon Sep 17 00:00:00 2001 From: uakci Date: Sat, 13 Aug 2022 00:41:20 +0200 Subject: hotfix nuogai misresponding to embeds --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.go b/bot.go index be9aaaf..009346e 100644 --- a/bot.go +++ b/bot.go @@ -89,7 +89,7 @@ type Response struct { } func Respond(dg *discordgo.Session, ms *discordgo.MessageCreate) { - if ms.Author.ID == dg.State.User.ID { + if ms.Author.ID == dg.State.User.ID || ms.Message.Content == "" { return } log.Printf("\n* %s", strings.Join(strings.Split(ms.Message.Content, "\n"), "\n ")) -- cgit v1.2.3