ilbot icon indicating copy to clipboard operation
ilbot copied to clipboard

Leaving/Joining a channel after the bot has started, without leaving all of them.

Open ventz opened this issue 12 years ago • 4 comments

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.

ventz avatar May 15 '13 22:05 ventz

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 :/

moritz avatar Aug 04 '13 06:08 moritz

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.

ventz avatar Aug 04 '13 08:08 ventz

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.

moritz avatar Jan 14 '14 13:01 moritz

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.

moritz avatar Feb 19 '14 13:02 moritz