An IRC bot written in Erlang
This isn't what one would exactly call "polished" yet, so for now, this is how to use jarvis:
- Change into whatever user is going to run the bot
- Place yourself in that users homedir
- mkdir .jarvis.d
- cd .jarvis.d
- Create a file named host, the contents of which should be
{host, "an IRC server address here"}., e.g.{host, "irc.freenode.net"}. - Create a file named channels, with contents
{channels, ["channel1", "channel2", "..."]}.i.e. enumerate the channels jarvis should connect to. NOTE: there should NOT be a hashmark in front of the channel name - Create a file named nick, with contents
{nick, "the nick you want your bot to have"}. - Start an erl shell (I'd recommend doing it inside a screen/tmux session):
screen -S bot erl - Compile jarvis (
c(jarvis).) - Start jarvis (
jarvis:start().)