| 1 |
This is manderlbot, an attempt to write an irc bot in erlang, with a XML |
| 2 |
based configuration. |
| 3 |
|
| 4 |
To use it, install erlang, then xmerl-0.15 |
| 5 |
http://www.erlang.org/user.html#xmerl-0.15 |
| 6 |
|
| 7 |
On my system this means install the compiled files in |
| 8 |
/usr/lib/erlang/lib/xmerl-0.15 |
| 9 |
|
| 10 |
make install will provide you /usr/bin/manderlbot to start the bot. |
| 11 |
If you have installed the debian package, you don't have to make |
| 12 |
install. |
| 13 |
|
| 14 |
Once manderlbot is running, you can obtain a shell on the erlang VM it |
| 15 |
is running in, by launching another VM and connecting to the former. |
| 16 |
|
| 17 |
erl -setcookie mdb -sname control |
| 18 |
|
| 19 |
(control@node)1> |
| 20 |
|
| 21 |
Then you hit ^G and connect to the manderlbot VM: |
| 22 |
User switch command |
| 23 |
--> r manderlbot@node |
| 24 |
--> c 3 |
| 25 |
|
| 26 |
If you want to stop manderlbot, you can now type in |
| 27 |
(manderlbot@node)1> application:stop(manderlbot). |