Nairobilug IRC bot in haskell taking advantage of discrete events (some will call it FRP) in haskell.
@seen <nick>
@rep <nick>
+1 <nick>
-1 <nick>
@np set <username>
to associate a last.fm username with your nick.@np <last.fm username>
If you don't want to set your last fm username.@np
If your IRC nick is your last.fm username or if you have set your last.fm username.@factoid <name> <message>
@define <word/phrase>
@echo <sentence you want to echo>
@ping
@gif <search term>
@wa <search query>
@help
— there are too many commands to paste the help in a channel so we give the user a URL to the wiki: https://github.com/nairobilug/nairobi-bot/wiki#usage@search <search query>
@wiki <search query>
I haven't yet written tests for it but they are coming.
Build and run the nairobi-bot executable like any other binary. Preferably using stack:
stack build
to compile but not add it to pathstack install
to add nairbibot-exe to path./.stack-work/install/x86_64-linux/lts-3.15/7.10.2/bin/nairobi-bot-exe
In production use the following answer from stackoverflow to run your executable.
nohup .stack-work/install/x86_64-linux/lts-3.15/7.10.2/bin/nairobi-bot-exe > /dev/null 2>&1 &
/dev/null means: stdout goes to /dev/null (which is a dummy device that does not record any output).
GPL-3.0 See LICENSE file for complete license.
See the Wiki