Skip to content
This repository was archived by the owner on Sep 23, 2020. It is now read-only.

Introduction

LordRalex edited this page Aug 30, 2012 · 1 revision

This is RalexBot, my personal that uses the PircBot (soon to be PircbotX) Java IRC bot library.

I coded this bot initially to serve a minor function for some users of the Minecraft Forums by doing basic server pings and slot calculations. Since then, he has evolved into the bot he is now, a guard bot who resides in the #minecraftforums channel offering a few counter-measures against spammers and server-ad folk.

While he is never fully complete, his core, which is the main aspect, is the central point of the bot.. The core does nothing without its listeners however, which are coded independent of the core, allowing for easy modifications and removal of certain listeners without recompiling or modification of the core. This is done with this built-in API event system, which includes multiple events a listener may interact with, and a priority system, allowing for certain listeners to work soon or later than others. This API is based in the idea that is used by Bukkit, to which I have simply coded my own version of it and implemented it into this bot. The bot uses multi-threading to allow for multiple events to handle at once so that he does not get hung on one event in case of an issue with code.

The add-ons are just an extension of the bot, adding his functionality that defines the bot to what he is. Each add-on extends a simple class from the API, to which when properly implemented, hooks the listener int the bot allowing it to use the new listener. Each listener can also communicate with each other with the methods that are provided by the API, to allow for some commands to call on existing methods without having to code them everywhere.

This is my joy of programming, and took much of my skill to get him where he now. While the code is impractical and perhaps leaking, it works, and he has not failed yet.

Clone this wiki locally