Don't react to bots

This commit is contained in:
kolaente 2021-05-15 15:06:51 +02:00
parent 5e9f3d2c75
commit 85ac4fe9fe
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -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
}