Leaving/Joining a channel after the bot has started, without leaving all of them.
Hi,
Any way of adding functionality to leave a specific channel after the bot has started without killing it and re-starting it.
An example case would be: joined in channel #one #two and #three, and wanting/needing to leave #two temporarily You don't want to spam #one and #three.
An extension to this - being able to test in one channel and re-loading the bot-code without leaving the others.
FWIW this is a feature I would also like to have.
The current base of the logger, Bot::BasicBot doesn't support joining channels after it has started up, so that requires some extensions to Bot::BasicBot, or rewriting it directly on top of POE::Component::IRC. So not a trivial thing to do :/
There is a way to do it with the pluggable modules. You can use irc for command+control to isse the commands, Auth, etc. From: Moritz LenzSent: Sunday, August 4, 2013 2:24 AMTo: moritz/ilbotReply To: moritz/ilbotCc: Ventz PetkovSubject: Re: [ilbot] Leaving/Joining a channel after the bot has started, without leaving all of them. (#14)FWIW this is a feature I would also like to have.
The current base of the logger, Bot::BasicBot doesn't support joining channels after it has started up, so that requires some extensions to Bot::BasicBot, or rewriting it directly on top of POE::Component::IRC. So not a trivial thing to do :/
—Reply to this email directly or view it on GitHub.
There is now an experimental ilbot3.pl based on AnyEvent. You can send it a SIGHUP, then it'll reload the config and join channels that have been added since the last config (re)load.
That's as far as I'm willing to implement it; if you want leaving of channels too, please send a pull request :-).
I'll close this ticket as soon as ilbot3.pl is production ready.
Status update on ilbot3: the current blocker is that it doesn't reconnect when the connection times out. That needs to be fixed before it can be considered the "real" thing.