Bot can't send messages to other channel

It works, I just wait 1 second with the response and message is visible on the channel even without moderator status. @BarryCarlyon you helped me with this logging :slight_smile:

Also I can’t use the “Extension Chat Message” because I need to send messages from another account than the extension. Also I need to listen users’ messages, because I want to send messages only after there are at least 5 or more other lines of text, I don’t want to spam.

I would be grateful if you can answer more questions:

  1. So since it works, why should I register the bot as an application and also send to verification? May I use it in form as it is now? May I keep the generated OAuth token forever?
  2. I don’t understand exactly what are limits. I read the limits here: https://dev.twitch.tv/docs/irc/guide#command--message-limits
    a) “20 authenticate attempts per 10 seconds per user” - when I execute client.connect(); with tmi.js is it just only one authentication attempt?
    b) “20 join attempts per 10 seconds per user” - Is my bot treated as a user? I mean when I execute client.join(channel) the rest of the limit is 19? So in case when I need to join to 1000 channels, should I spread these joins in time to not exceed 20 per 10 second per my bot?
    c) “20 per 30 seconds Users sending commands or messages to channels in which they do not have Moderator or Operator status” - so after my bot joined to mentioned 1000 channels, and want to send message to each one for every 5 minutes, does it exhaust the limit because it is set per bot or does it not exhaust because it is set per channel?