Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ventz opened this issue May 15, 2013 · 4 comments

Comments

@ventz
Copy link

ventz commented May 15, 2013

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.

@moritz
Copy link
Owner

moritz commented Aug 4, 2013

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

@ventz
Copy link
Author

ventz commented Aug 4, 2013

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.

@moritz
Copy link
Owner

moritz commented Jan 14, 2014

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
Copy link
Owner

moritz commented Feb 19, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants