From fea2b05e032a3e33a2e8579cb511b25b02a72ee2 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Thu, 29 Mar 2018 19:38:56 +0200 Subject: [PATCH] Ignore all messages by the bot --- DeukBot4/MessageHandlers/MainHandler.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DeukBot4/MessageHandlers/MainHandler.cs b/DeukBot4/MessageHandlers/MainHandler.cs index ed8a588..93d35cc 100644 --- a/DeukBot4/MessageHandlers/MainHandler.cs +++ b/DeukBot4/MessageHandlers/MainHandler.cs @@ -8,6 +8,10 @@ namespace DeukBot4.MessageHandlers { public static async Task HandleMessage(SocketMessage message) { + if (message.Author.Id == Program.Client.CurrentUser.Id) + { + return; + } try { await CommandHandler.CommandHandler.HandleMessage(message);