Okay, I'm quite willing to just be told I'm an idiot, but I have yet to figure this one out. The point of this bot is to provide a dice server for an RPG IRC server.
The main function I need it to be able to do is to join channels its invited to, ie the GM types "/msg bot invite #channel" and the bot joins the channel, the GM types "/msg bot leave #channel" and the bot leaves.
I can find a ton of scripts having to do with inviting users but nothing having to do with inviting the bot. BTW these will be bot users, not owners or ops who will be using this command, and I'd prefer to avoid having to use DCC for it
The bot can't ask anyone as it won't be aware of the channels that exsist. There's no telling what channels will be created for various games, I simply want the bot to respond to a "invite #channel" command given to it by users with a certain flag by joining said channel.