How do you handle the message limitation?

The only way “around” limits is to scale up the number of connections used to access chat. Unless all the channels your bot is in have actually added the bot as a moderator to the channel, then the 100 message limit is useless. For that reason, you should be careful when creating logic conforming to 100 messages and actually just continue to limit messages at 20.

As an aside, please either use code blocks or a pastebin to share your code in the future.