Skip to content

Commit

Permalink
fix bots invoking commands
Browse files Browse the repository at this point in the history
  • Loading branch information
SirJosh3917 authored May 11, 2021
1 parent 5776dc5 commit 7b6c77a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ForumCrawler/Settings/DiscordSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 () =>
{
Expand Down

0 comments on commit 7b6c77a

Please sign in to comment.