I think to get it started you'll need to do the following:
- Compile everything, be sure to add the inc directory to your include path.
- Start it with a node name and set a mnesia directory.
- Call p1_db:start(). Then p1_db:create_tables().
- Then call irc_bot:add_bot (Maybe it's addbot?). It takes a tuple, see code to figure it out.
- p1_main:start()
- When you are finished: bot_server ! stop. The beauty of erlang lets you do this from another node on another machine too, if you so desire.
The only other erlang irc bot I've found is manderlbot which can be found on freshmeat. I think it is a bit better designed than mine and has the intention of other people using it in mind where as mine is more of me just playing around. If there is an interest in it perhaps I will do more with it.
No comments:
Post a Comment