JiRC v0.6 - Java IRC Bot
Published Apr 22, 2012
Updated Jun 17, 2012
--INTRODUCTION--
JiRC is a Java-based bot client that not only mimics mIRC's built in functions to navigate within and between servers, but also out-sources events to "EventsHandler.java" allowing for developers to code in their own snippets for added functionality. I have provided details within the aforementioned file that pertains to methods designed to communicate with the currently executing thread. These methods are designed to make outputting data to the IRC server simple and easy. It does have a built-in JavaScript Engine that allows for utilization of basic JS libraries.
Commands are as followed:
- /msg (#Chan OR NICK) Message
- /notice (#CHAN OR NICK) Message
- /join (#CHAN OR #CHAN,#CHAN,#CHAN)
- /part (#CHAN OR #CHAN,#CHAN,#CHAN)
- /nick NICK
- /quit
- /mode (#CHAN OR NICK) Modes
- /js String -- Evaluates a chunk of supplied JavaScript code
- /server Server port nick password
- /close (Closes currently open PM tab)
--NEWS--
- File version and JDK association are cataloged as followed: "JiRC-VERSION-JDK." Please note that all files are reverse compatible in that they can be compiled under both JDK1.6 or JDK1.7. I simply choose to develop in JDK1.7 because it has a much stricter handle on coding techniques, which translates very well back to JDK1.6.x.
--UPDATES--
--VERSION 0.3--
- Overhauled the entire script *again* -_- Swapped most methods over to static for easier data exchange between classes. Corrected all known bugs and restructured the code for a better representation of data flow.
- Re-worked the channel detection code for a more accurate representation of your current channels.
- Can now directly access the Core.java methods from EventHandler.java providing easier access to output methods such as sendMsg() and sendNot() -- more information inside the EventHandler.java file.
- Added a JDK1.6.x compatible version of the JAR & files alike. It's not been cooperating very well with me on this computer, so let me know if something doesn't work.
- Re-constructed channel detection code again.
--VERSION 0.4--
- Renovated the Login GUI to utilize some organizing and compressing elements such as the combo box.
- Eliminated the need to supply a port, however the option is still there if you need it. (Example: irc.swiftirc.net:6667) Ports default to 6667 unless specified otherwise.
- Added Key Dispatching, therefore "Enter" will execute commands on both Login and the Client.
- All visited servers will have their entries saved and updated according to the last configuration, these will be available for selection when logging in. (Entries are updated if you've visited it before, and written if it's a first time server. This is to ensure that there are no duplicates or multiple configurations of one server.)
--VERSION 0.6--
- The client UI is finally updated and looks exponentially better than before. It sorts all your channels into tabs and directs traffic accordingly with nameless traffic being diverted to the server tab.
- Reconfigured the Javascript Evaluation code, and it now returns the evaluated data rather than disposing of it through the UI.
- While the "/msg" command still exists within the Client commands, it is no longer needed to send messages to channels, while you have a channel tab activated it maintains an active state which means whatever you type that can't be construed as a command is sent straight through to the channel as a message. So, in short, just type like you normally would on another IRC chat. :)
- Private Message data now flows into their own respective user represented tabs, and as such, I've added "/Close" that will close the currently active PM TAB. Note that it cannot close any channel tabs, this is to maintain the current channel state as much as possible.
Filename
Size
Date
Downloads
37.43 KB
Jun 16, 2012
129
37.57 KB
Jun 16, 2012
29
33.38 KB
Apr 27, 2012
48
25.55 KB
Apr 26, 2012
15
21.41 KB
Apr 24, 2012
28