I made a bot and thought it was pretty cool. I've also made a way to connect it to the JMegaHal AI, which can also be found on that site. The bot adds each message to the JMegaHal and generates a sentence from it. I've also made is so when people send a private message it will respond. Right now it runs on the command line.
Anyway as my first post I really wanted to say something about this cool framework that I found. Thank for reading my first post.
05-04-2004, 10:16 PM
By the way I think it would be cool to make a gui for the bot but I'm having trouble figuring out the best way to generate events from the bot and get the gui to listen to them. I'm going to read up on it. If I find anything I will post an update.
05-11-2004, 08:30 AM
read up about Observer and Observable
make the bot Observable
any interesting things can be used to trigger an update, and all registered Observers will receive the message
it is similar to JButton.addActionListener..
and then when the user clicks the button, the actionPerformed method is called..
well, with Observer Observable, the bot calls setCHanged() then update(SOME ARGUMENT)
and every registered observer has his update() method called.. if the gui is observing, it can use the supplied arguments to change the output
05-12-2004, 11:00 PM
Thanks, I'll look it up and see how to make it work.