Fixed custom reactions self-trigger, fixed bot credentials example

This commit is contained in:
Kwoth
2016-10-14 21:54:26 +02:00
parent 2e046b9fe9
commit c46fd50c12
2 changed files with 11 additions and 9 deletions

View File

@@ -33,7 +33,7 @@ namespace NadekoBot.Modules.CustomReactions
client.MessageReceived += (imsg) =>
{
var umsg = imsg as IUserMessage;
if (umsg == null)
if (umsg == null || imsg.Author.IsBot)
return Task.CompletedTask;
var channel = umsg.Channel as ITextChannel;