Distinguish bot when emitSelf (explicitly false)
Distinguish bot when emitSelf (explicitly false)

When the option "emitSelf" is true, there's no clear way to distinguish the bot from otherwise. (Say the account runs on the same account as the owner of the bot or as another bot) Simply passing a fourth argument to the event listeners as "from self" should be enough (with explicit true or false).

client.addListener('chat', function(channel, user, text, fromSelf) {
    console.log('This message was', fromSelf ? '' : 'not', 'from me.');
});
cmcintosh/twitch-irc,twitch-irc/twitch-irc