|Re: Bot Famework [message #614887]
||Sat, 07 April 2007 06:25
| Erkki Lindpere
Registered: July 2009
Unfortunately, my ISP-s mail server seems to be added into some spam |
blacklist, so I can't send mail to ecf-dev atm. Maybe we can continue
the discussion here instead:
>So basically you have one bot that supports adapting to multiple
>scenarios, am I correct? Can you paste some code to help with the
Yes, you are correct. Unfortunately the code for this is currently not
well separated from the rest of the application and there would be too
much noise there. Basically what I have is a text-based game server.
There is one OSGi server process that is managed remotely. It can run
"game instances" (~= bot instance) which connect to a comm. channel:
* An IM "game instance manager" would simply connect all the known IM
bots and listen for commands. In case of a "start game X" command, a
game session is started with the buddy who sent that command. It should
also show up somewhere in the management interface (every running game
should be visible there). When a game is started with a buddy then every
input from the buddy is sent straight to the game.
* A BB "instance manager" would wait for games to be started by an admin
from the remote management interface (by selecting a game and a forum
thread to run it in)
* A Chat Room manager would behave similarly to the BB manager -- i.e.
starting the game is done by an admin and not a random person in the
chat. However, maybe I will want to make the bot able to take part of
the chat while not running a game.
So indeed the life cycle of the bots and how they behave varies
somewhat. Also, some of the bot managers might need to be able to run
custom commands besides running the games, but some might only run games
and nothing else.
I now tried the Bot Framework a bit and it might even be usable for me.
I just can't use the extension points, but the code might even suit me.
I'll try to refactor my own code and maybe after that I can post some
code samples too.
Powered by FUDForum
. Page generated in 0.09140 seconds