From 3873b1c81290f7ea26d44a9cfb39b2e9d3c5c336 Mon Sep 17 00:00:00 2001 From: Daniel Aberger Date: Thu, 5 Jan 2017 23:25:25 +0100 Subject: [PATCH] ping pong bug fix --- main.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/main.go b/main.go index 42001af..2351d9c 100644 --- a/main.go +++ b/main.go @@ -609,13 +609,6 @@ func handleBotControlMessages(s *discordgo.Session, m *discordgo.MessageCreate, func onMessageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { if m.Content == "ping" || m.Content == "pong" { - u, _ := s.User("@me") - BotID := u.ID - // Ignore all messages created by the bot itself - if m.Author.ID == BotID { - return - } - // If the message is "ping" reply with "Pong!" if m.Content == "ping" { _, _ = s.ChannelMessageSend(m.ChannelID, "Pong!")