From 7b6c77abf45fadd208e88f28e6e95020f133d01f Mon Sep 17 00:00:00 2001 From: SirJosh3917 Date: Tue, 11 May 2021 17:59:00 -0400 Subject: [PATCH] fix bots invoking commands --- ForumCrawler/Settings/DiscordSettings.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ForumCrawler/Settings/DiscordSettings.cs b/ForumCrawler/Settings/DiscordSettings.cs index d172da8..7889efa 100644 --- a/ForumCrawler/Settings/DiscordSettings.cs +++ b/ForumCrawler/Settings/DiscordSettings.cs @@ -142,6 +142,11 @@ public static Task HandleCommand(DiscordSocketClient client, IServiceProvider se { return Task.CompletedTask; } + + if (message.Author.IsBot) + { + return Task.CompletedTask; + } Task.Run(async () => {