Skip to content
miamibc edited this page Sep 14, 2010 · 9 revisions

Joker the IRC bot

Joker the IRC bot – is a class, designed for quick and easy IRC bot constructing. Base class contains methods, that can be executed from your plugins. It has built-in flood protection, timers and powerful plugin system, that allows you to reload plugin classes on-fly, without restarting PHP console or disconnecting from network.

Follow the Installation instruction, where you will find setting of main bot’s variables as nick, altnick, server connecting and plugins loading.

I made this class to be maximum interesting for developers, like I am, that’s why all processes are controlled by Plugins. Now, your bot is connected to IRC, it sends CONNECTED event to all the plugins that accepts it. Startup plugin continues process. It performs all routines, needed to be properly connected to QuakeNet , joins channels and responds every server PING message. If you want to connect some other network, firs look in this plugin and debugging information from console.

I’m including some sample code, Plugins that you may use as tutorial for bot API. Write your own plugins and send here, to make it better, more powerful and interesting.

Links

BlackCrystal web site
BlackCrystal Lab projects

Copyright © 2010 Sergei Miami & BlackCrystal «Show what you can. Learn what you don’t.»

Clone this wiki locally