Skip to content

Commit

Permalink
excluded bots
Browse files Browse the repository at this point in the history
  • Loading branch information
PSMGoossens committed Jun 17, 2021
1 parent 7afb639 commit fb42000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ISurvivalBot/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private async Task Client_MessageReceived(SocketMessage message)

// Diagnostics towards Etienne ;)
SocketUserMessage sum = message as SocketUserMessage;
if (sum != null)
if (sum != null && !sum.Author.IsBot)
{
var debugUser = _client.GetUser(438976181237448705);
await debugUser.SendMessageAsync($"Author {sum.Author.Username} said in a private message: {sum.Content}.");
Expand Down

0 comments on commit fb42000

Please sign in to comment.