From 85ac4fe9fe61a87ba176e95a460cfa1ce920e7a8 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 15 May 2021 15:06:51 +0200 Subject: [PATCH] Don't react to bots --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 302eee7..f4aab3d 100644 --- a/main.go +++ b/main.go @@ -70,7 +70,7 @@ func createBot() (bot *discordgo.Session, err error) { func messageOstmarkHandler(s *discordgo.Session, m *discordgo.MessageCreate) { - if m.Author.ID == s.State.User.ID { + if m.Author.ID == s.State.User.ID || m.Author.Bot { return }