This is very very rough. It'll connect to the server and that's about it. I'm working on getting it to automatically join channels currently, but there's a TON of stuff left to do still. As such, it does work. This is a diff against SVN.
Do you have an account on SF directly? We could create a branch in SVN and work on the POE support there. There are others interested in helping out, but nobody else is currently working on it as far as I know.
Thanx!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is Tim again (posting from my sourceforge account now). I finally got back to working on this. I forgot I made this originally and started over from scratch. I have a new version of the patch that will connect to a server (SSL supported), along with supporting the karma command at the very least. I haven't gotten it automatically joining channels, but /invite works and the bot will join a channel without errors.
I made a separate feature request (again, I forgot I posted this one 2 years ago) as #3470671. Should I post the new patch under that? Also, a new branch in SVN would be the most ideal way of working on this, so that I don't have to worry about everything being only on my machine.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks, I'll look into that. That might reduce the code a little too. The other thing I haven't figured out how to duplicate yet is the scheduling system. There's POE::Component::Schedule, but I don't know if it will work for what infobot does.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I committed first hunk of it. Here's what currently works:
- Connecting to servers
- Setting the master password
- Joining channels on the first connection
- Some of the commands (karma works, at least, as does setting factoids)
Here's what I know doesn't work:
- DCC (chat fails completely, haven't tried other modes)
- Some of the CTCP commands (normal ping works, ctcp ping doesn't)
- Joining channels after a disconnect/reconnect (gives me an error about a null channel)
Here's what I haven't tested:
- A lot of the infobot modules
- A lot of the CTCP stuff
- Channel settings (from the config file)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
Do you have an account on SF directly? We could create a branch in SVN and work on the POE support there. There are others interested in helping out, but nobody else is currently working on it as far as I know.
Thanx!
This is Tim again (posting from my sourceforge account now). I finally got back to working on this. I forgot I made this originally and started over from scratch. I have a new version of the patch that will connect to a server (SSL supported), along with supporting the karma command at the very least. I haven't gotten it automatically joining channels, but /invite works and the bot will join a channel without errors.
I made a separate feature request (again, I forgot I posted this one 2 years ago) as #3470671. Should I post the new patch under that? Also, a new branch in SVN would be the most ideal way of working on this, so that I don't have to worry about everything being only on my machine.
Hi, Tim. irc.perl.org #poe is available to assist with POE::Component::IRC advice. For example, it has a plugins system that might help with joining channels: http://search.cpan.org/perldoc?POE::Component::IRC::Plugin::AutoJoin
There seem to be a lot of plugins http://search.cpan.org/search?query=POE%3A%3AComponent%3A%3AIRC%3A%3APlugin&mode=module
Thanks, I'll look into that. That might reduce the code a little too. The other thing I haven't figured out how to duplicate yet is the scheduling system. There's POE::Component::Schedule, but I don't know if it will work for what infobot does.
I guess it depends on how you want to schedule events. There's also http://search.cpan.org/perldoc?POE::Component::Cron and the general techniques outlined at http://poe.perl.org/?POE_Cookbook/Recurring_Alarms
I'm basically just wanting to duplicate whatever the current infobot is doing with all of the $conn->schedule calls.
Should I post this patch as it is currently? Do you want to make an SVN branch that I can work off of?
I committed first hunk of it. Here's what currently works:
- Connecting to servers
- Setting the master password
- Joining channels on the first connection
- Some of the commands (karma works, at least, as does setting factoids)
Here's what I know doesn't work:
- DCC (chat fails completely, haven't tried other modes)
- Some of the CTCP commands (normal ping works, ctcp ping doesn't)
- Joining channels after a disconnect/reconnect (gives me an error about a null channel)
Here's what I haven't tested:
- A lot of the infobot modules
- A lot of the CTCP stuff
- Channel settings (from the config file)