CaitlynMainer / pircbotx

Automatically exported from code.google.com/p/pircbotx
0 stars 0 forks source link

Support for Commands #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The template is rather non-applicable here.

The creation of an 8 ball using pircbotx is easy code-wise. then you realise it 
cannot take arguments, making the 8 ball useless, as you can only test for 
exact equality.

Therefore there should be an option/whatever you think to check that the first 
word of a message contains a command and if it does, run the correct 
listener/however it does it normally.

Thank you for reading this :)

Original issue reported on code.google.com by netgooguy@googlemail.com on 9 Nov 2011 at 9:06

GoogleCodeExporter commented 9 years ago
This is unfortunately by design. 

PircBotX and the original PircBot projects are, contrary to their names, basic 
frameworks to provide IRC functionality in Java. They are not strictly bot 
frameworks, there are several implementations that are IRC clients. 

A good Bot has command parsing, admins, automation, auto joining channels and 
servers, lockout mode, abuse handling, and all sorts of other features. This is 
out of the domain of PircBotX.

I will say though that there is another project of mine called Quackbot. Its 
not 100% complete (it works but needs a lot of polish) and probably won't be 
for a while. but has the functionality needed for a full bot. It comes with all 
the above features plus some. Its a proper Bot that's written as a bot. You can 
check on it here: http://quackbot.googlecode.com/

For you, this means you have two options: A) Try and use Quackbot in its 
current state or B) Write your own command parsing. Command parsing isn't that 
difficult and has the advantage of using a framework you already know. You can 
also add features as you wish. Note that would of had to do this anyway in 
PircBot. Unfortunately as of now these are your only options

Original comment by Lord.Qua...@gmail.com on 9 Nov 2011 at 10:14