The bot could use some refactoring, variables like j and r are not very helpful.
j in this case determines whether it should join defined channels, you can find it around line 276..
Fixed irc bot reconnect if socket dies
Auto-Deploy finished, Test PR at http://2061.ci.librenms.org or https://2061.ci.librenms.org
👍 Glad to see somebody adds some love to the bot, I'm sure it can use some :)