Author Topic: SoldatBot - Java Scriptable Remote Admin Bot  (Read 7252 times)

0 Members and 1 Guest are viewing this topic.

Offline BenB

  • Major(1)
  • Posts: 7
SoldatBot - Java Scriptable Remote Admin Bot
« on: February 19, 2007, 08:10:02 pm »
Hello, I'm Ben (:
I play soldat pretty often and was pretty bored while I was sick for a few days so I decided to take a project on myself.

This bot is pretty much a modular engine, you can create whatever you want with it including GUI apps for server administration.. If you know Java this might save some time for you.

What makes it different is that you are able to run it on a server, as Java is a platform-independent language(good for gatherbots, maybe companies who want to disable /maxplayers command etc..).

The bot has a built-in IRC interface with 99% of the stuff covered (using PircBot's API).

Here's the link for download: soldatbot-1.0.zip

Readme.txt:
Code: [Select]
==========================================
SoldatBot by Ben Barkay
==========================================

Index:

 1. Developer notes
 2. What is SoldatBot?
 3. How do I use SoldatBot?
 4. Startup file
 5. Getting help
 6. Thanks


1. Developer notes

I know the code isn't all commented out, I know the variable and method
naming is not all Java, and that lots of its parts are not the most
efficient they could be, my excuse: I'm very lazy. All for all, it does
work, and pretty nicely too - doesn't miss many features aswell.
 - Ben


2. What is SoldatBot?

SoldatBot is a modular Java soldat administration bot. All of its features
are basically modules which are very scalable. You can create anything you
want, from IRC bots to fancy GUI applications.
SoldatBot is opensource, which means that if you don't like something about
it, you can change it. You are free to update and release it, though you
must always provide the up-to-date source in the package.


3. How do I use SoldatBot?

First of all, you need to have JRE installed. Go to http://www.java.com
and install the latest version of Java available. Then, edit the server.ini
file to match your server settings.
Now you may doubleclick Run.bat and the bot will start working.


4. Startup file
The startup.txt file contains the initial commands the engine receives
after it connects to the server. Whatever you write there is being treated
as an admin command and will call modules from the "adminCommands" folder.
Lines starting with "//" or "#" are ignored by the parser.


5. Getting help

You may get support over IRC, at the channel #soldat.il in the QuakeNet
network (irc.quakenet.org).


6. Thanks

EnEsCe - For helping with the refresh packet
jibble.org - A nice IRC bot API, st0lered

 - Ben Barkay

Offline M.rSnow

  • Camper
  • ***
  • Posts: 482
Re: SoldatBot - Java Scriptable Remote Admin Bot
« Reply #1 on: February 19, 2007, 09:20:43 pm »
Nice it migth be use full..
Lapis: You need a vacation or a bullet though the head both works just fine by me.

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1009
Re: SoldatBot - Java Scriptable Remote Admin Bot
« Reply #2 on: February 20, 2007, 01:23:12 am »
Thanks Ben, cya at channel for help ;)

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5017
Re: SoldatBot - Java Scriptable Remote Admin Bot
« Reply #3 on: February 20, 2007, 02:09:20 am »
That was fast, didn't think you'd release it so soon. ;)

I'm going to download it and have some fun with it now...
Careful with that axe, Eugene.

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: SoldatBot - Java Scriptable Remote Admin Bot
« Reply #4 on: February 20, 2007, 05:05:22 am »
Indeed that was very quickly produced, does the job fine. Nice job.

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1009
Re: SoldatBot - Java Scriptable Remote Admin Bot
« Reply #5 on: February 20, 2007, 08:41:16 am »
I get this error:
Code: [Select]
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version n
umber in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Press any key to continue . . .

I have jre1.5.0_11 installed.

Offline BenB

  • Major(1)
  • Posts: 7
Re: SoldatBot - Java Scriptable Remote Admin Bot
« Reply #6 on: February 20, 2007, 01:55:11 pm »
Try recompiling it if you have JDK, the classes are compiled using JDK 1.6 so if you have another version try compiling the source with it.

 - Ben

Offline rumpel

  • Camper
  • ***
  • Posts: 410
Re: SoldatBot - Java Scriptable Remote Admin Bot
« Reply #7 on: February 24, 2007, 06:29:38 pm »
I get this error:
Code: [Select]
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version n
umber in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Press any key to continue . . .

I have jre1.5.0_11 installed.
have the same :(
banned.

Offline BenB

  • Major(1)
  • Posts: 7
Re: SoldatBot - Java Scriptable Remote Admin Bot
« Reply #8 on: February 25, 2007, 06:12:10 am »
download the latest version of Java from http://java.com

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1009
Re: SoldatBot - Java Scriptable Remote Admin Bot
« Reply #9 on: February 25, 2007, 11:23:14 am »
I have the latest version Ben.

Offline rumpel

  • Camper
  • ***
  • Posts: 410
Re: SoldatBot - Java Scriptable Remote Admin Bot
« Reply #10 on: February 25, 2007, 11:42:23 am »
yeah me2
banned.

hunterz

  • Guest
Re: SoldatBot - Java Scriptable Remote Admin Bot
« Reply #11 on: February 25, 2007, 05:32:47 pm »
me²
=\

Offline BenB

  • Major(1)
  • Posts: 7
Re: SoldatBot - Java Scriptable Remote Admin Bot
« Reply #12 on: February 26, 2007, 03:02:00 am »
1.5 isn't the latest, 1.6 is...

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1009
Re: SoldatBot - Java Scriptable Remote Admin Bot
« Reply #13 on: February 26, 2007, 05:10:54 am »
JRE1_5_0_11 is the latest version from java.com But it's too much of an issue so I forget about it.

Offline BenB

  • Major(1)
  • Posts: 7
Re: SoldatBot - Java Scriptable Remote Admin Bot
« Reply #14 on: February 28, 2007, 05:44:29 am »
then you can download it from http://java.sun.com [=