kiwiirc / irc-framework

🛠️ A better IRC framework for node.js. For bots and full clients.
MIT License
180 stars 62 forks source link

'invited' event not triggering? #340

Closed Underdoge closed 1 year ago

Underdoge commented 1 year ago

Hello,

I have the following code to log when someone invites the bot but for some reason it's not triggering:

bot.on('invited', function(event){
    console.log("User " + event.nick + " invited us to " + event.channel);
});

Other events like 'connected', 'message', etc. trigger just fine and I can act on them in the same way I described in the code snippet, but for some reason 'invited' is simply not triggering.

Am I doing something wrong?

Thank you

ItsOnlyBinary commented 1 year ago

I think you are looking for 'invite' event, 'invited' is for when your bot has invited another user