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

You could parse /mods every 60 seconds or so, but seriously, is your bot really sending 40 lines in less than 60 seconds? What is it doing? flooding?