What's the best way to check if the bot's account is a moderator in the channel?

If you are sending 40 lines at that quick interval, and the bot isn’t operating in 20+ channels, you must have one annoying bot. You could just do a delay between commands.