ok, i'm working on the documentation on writing a handler...:/ in the meantime here's a (very) quickstart:
The config files:
dist/conf/JbActionMap.conf
this file contains the handler name to java class mapping. add you r handler name and the class it will correspond to.
this class will implement the handle() method on the JbActionHandler interface.
look at
dist/conf/JbActionDict.conf
this is a file where you can put in aliases for the action names, i.e. if a user mistypes "hello" as "helo", this is where you can place alternate spellings of a handler's name. for example one of the lines is:
test=tist,tizzle,teezo,t
if a user sends an IM to your bot with the word "tist" or "t" or "tizzle" or "teezo", it would look up the class corresponding to the "test" handler in JbActionMap.conf. (thinking out loud wouldn't it be neat to just implement a fuzzy matching system in here?)
the Handlers:
look in the
dist/conf/handlers dir
there you'll find the various config for handler files. these can be named basically anything, as long as you refer to them in the handler you write. the values can be anything as well, they're just basic java properties files to help you to not hardcode everything.
writing a handler quickstart:
as stated above, handlers should implement the JbActionHandler interface, which has only one method, handle(JbAction). a JbAction is pretty simple--it consists of a name and data. the name portion corresponds to a name in the JbActionMap.conf file, and the data is any other data that you'll be passing to your handler.
i have to go right now, but hopefully that's a quick start. please leave any questions in the comments section below. thanks!
j.
Posted by Jon at May 23, 2003 06:56 AMLinux: Because rebooting is for adding hardware
Solaris: Because you don't need to reboot to add hardware
Windows: Because rebooting is for adding hardware, adding software,
regularly scheduled downtime, and should also be done on a daily basis to
keep the machine running.
-- From a Slashdot.org post
lipitor
Outside of a dog, a book is man's best friend. Inside of a dog, it is too
dark to read.
lipitor
Where can you find the best online universities and get an accredited online degree that will raise your salary? Our online education site i-university-guide.com is helping working professionals like you get online degrees in only 2 years while working. For example, the university of phoenix offers the best online bachelor degree in many fields. Get your online degree now.
Posted by: Online University at September 12, 2004 09:00 PMHi, if you want to find the best online university from all the online universities on the internet, enter our site and get the best online degree out of all the online degrees available out there. You can even choose an online bachelor degree or other online degree programs. Thanks.
Posted by: online university at September 23, 2004 10:27 PMThis is a lot easier then you might think. The first time I went to a poker site, like most of you, I was very eager to get started immediately.Texas Holdem or Online Texas Hold em and Hold em or texas hold em poker and texas hold em strategy
Posted by: Texas Holdem at October 7, 2004 09:22 PM