From 50f1af5e5b9806cb2477b9274bfc9bf0a72deb8a Mon Sep 17 00:00:00 2001 From: uakci Date: Sun, 30 Jul 2023 17:51:07 +0200 Subject: ignore bot accounts --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot.go') diff --git a/bot.go b/bot.go index 56b9126..abd41e0 100644 --- a/bot.go +++ b/bot.go @@ -106,7 +106,7 @@ func Respond(dg *discordgo.Session, ms *discordgo.MessageCreate) { sigil = "<" } log.Printf("\n%s %s", sigil, strings.Join(strings.Split(ms.Message.Content, "\n"), "\n ")) - if own { + if own || ms.Author.Bot { return } respond(ms.Message.Content, -- cgit v1.2.3