From 07d51266bbe94f57a4b3c64ca2afa36933ac9759 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 24 Nov 2021 10:52:51 -0500 Subject: [PATCH] Thanos should ignore his own messages. --- discordMessage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordMessage.go b/discordMessage.go index fd854db..53581b3 100644 --- a/discordMessage.go +++ b/discordMessage.go @@ -26,7 +26,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { Parts: strings.Split(m.Content, " ")[2:], }) } - if m.Author.Bot { + if m.Author.Bot || m.Author.ID == s.State.User.ID { return }