kiwiirc / irc-framework

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

freenode is throttling long messages #273

Open ralyodio opened 3 years ago

ralyodio commented 3 years ago

I have a longer message for my .help command that is around 20 lines...however after 10 freenode throttles the bot from sending messages. Is there anway to send one line at a time or something with a pause?


bot.matchMessage(/^\.help/, async (event) => {
  console.log(event);
  bot.say(event.nick, `
Available commands:
 .c <crypto>
 .s <stock>
 .join <channel>
 .trend
 .short <url>
 .joke
 .ball <question>
 .hot
 .new
 .dd new|hot|top|comments
 .brisk stock|crypto <ticker>
 .brisk topic <subject>
 .shorts
 .penny
 .moon
 .amt c <ticker> <amount>
 .amt s <ticker> <amount>
`);
});