I started this project over a year ago (when CFMX 7 was in alpha testing) but never updated it to run on the final release. Ron Pasch badgered me today to finish the project and release it (thank you Ron!).
You can download it from the software pod on my blog.
IRCBot uses PircBot by Paul Mutton and includes release 1.4.0 for your convenience. It might well work with the latest release of PircBot (1.4.4) but I haven't tried it. Paul's done a great job: PircBot is very full-featured and it made it trivial for me to build an event gateway that enables you to write IRC channel bots in ColdFusion!
You can see a version of the bot in action on the #coldfusion channel on DAL.net - join the channel and type !help and the bot will send you private messages explaining how to interact with it. The bot will be online when I'm online - it runs on my laptop.
I keep enhancing it so expect it to grow in functionality over time...
Just a quick note: many IRC servers do not allow multiple connections from the same IP address so if you try to run the bot on your localhost setup, you may not be able to connect using your regular IRC client at the same time. One possible workaround, if the IRC system you use has a cluster of servers (like DAL.net) is to tell the bot to connect to a different server than the one your IRC client uses!
IRCBot Event Gateway Now Available!
November 22, 2005 · 19 Comments
Tags: coldfusion

19 responses so far ↓
1 Damon Cooper // Nov 22, 2005 at 3:20 PM
2 João Fernandes // Nov 22, 2005 at 3:32 PM
I tought we would never get the missing gateway ;)
Thanks (also to Ron)!
3 Ryan Guill // Nov 22, 2005 at 6:26 PM
4 Critter // Nov 22, 2005 at 7:21 PM
i'll have a gander at the pirchbot stuff, but thought i would ask here as well.
not really wanting to expose the ip of my server on IRC (i'm sure you can understand..) is there a way to specify a l/p for the bot, so that i can log it into a bnc?
5 Ron Pasch // Nov 23, 2005 at 12:23 AM
No really sean, Thx sooo much for this one!
6 Adedeji Olowe // Nov 23, 2005 at 2:12 AM
When should we be expecting something for AOL/Yahoo/MSN?
I guess am Oliver Twist, I always want some more.
7 Critter // Nov 23, 2005 at 3:55 AM
have a gander at ben forta's blog, he documents the steps for creating IMBots there...
8 Sean Corfield // Nov 23, 2005 at 9:46 AM
Critter, no idea. You'd have to dig around in the PircBot source and probably modify the bot left, right and center.
Note to all: I will not under any circumstances provide any support for source builds of this bot. If you want to mess with it, beyond just editing the CFC and the cfg file, you are completely and utterly on your own. Why? Because there are two many variables in your Java knowledge and your Java development environment for me to provide remote help. I will entertain specific requests for enhancments to the bot gateway which I may incorporate into the Java code but I will not help anyone trying to build it themselves. Sorry but life is just too short for that!
9 Critter // Nov 23, 2005 at 9:50 AM
10 fluffy bananachunks // Nov 23, 2005 at 1:54 PM
TIA
Geo
11 Sean Corfield // Nov 25, 2005 at 1:21 PM
12 Sean Corfield // Nov 25, 2005 at 1:30 PM
13 Rick Root // Feb 17, 2006 at 8:11 PM
I wonder if I could use it to turn my new cfajaxchat into a web-based IRC gateway.
www.opensourcecf.com/cfajaxchat
I've already had a couple people suggest that.
14 Sean Corfield // Feb 18, 2006 at 5:49 PM
15 Gary Funk // Apr 18, 2006 at 12:19 PM
16 alessandro prox // Jun 19, 2009 at 1:53 AM
thanks for the awesome work
17 Sean Corfield // Jun 19, 2009 at 3:00 PM
18 Gambit // May 21, 2010 at 7:19 PM
Why didn't you expose all of pircbot's methods to the cfc's? As far as I know there's no way for us to do things like joinChannel() and such without editing the java files.
19 Sean Corfield // May 21, 2010 at 7:50 PM
However, keep your eyes on this blog as I'll be creating a new IRC event gateway for Railo 3.2 and the entire gateway will be written in CFML - no Java required for Railo event gateways.
Leave a Comment