IRC bot made with NodeJS. Just for fun. NOT MAINTAINED ANYMORE.
Hacked this thing together just for the fun of it. Built on top of Node-IRC-module.
!
-prefix (e.g. !google NodeJS
)+o
of course../autoop.json
. WARNING: Auto-op is nick based so use cautiously (if at all)!./greetings.json
/mode
, /join
, /part
and make the bot say things!help
- prints list of available commands!reload
- Reloads commands, observeres, greeting lists and auto-op lists (admin only)
!quit
- (admin only)
Admin only.
The usage of the bot mostly requires the admin to be on the same IRC channel as the bot. Commands work mostly the same way as their "native" IRC counterparts, meaning !command
matches the IRC /command
... mostly :)
!join <channel>
or !join <channel> <password>
if it has one!part
if on a channel or !part <channel>
if called elsewhere!say <something>
if on a channel or !say <channel> <something>
if called elsewhere!ban <someone>
!unban <someone>
!kick <someone>
!op <someone>
!deop <someone>
!mode <command>
or !mode <command> <nick>
Found in ./commands
-folder.
!google
- returns links to top 3 google results!wiki
- returns links to top 3 wikipedia results!so
- returns links to top 3 stackoverflow resultsThese are the fun things!
git clone https://github.com/aripalo/node-irc-bot.git
node-irc-bot
npm install
cp example-configurations/example-config.json config-json
config-json
node index.js
./commands
-folderfoo.js
will become command !foo
!reload
-command on as a bot admin... basically the same process as with commands, but observers aren't activated by !command
, but instead they're meant for monitoring conversation and act on them.
!google
, !so
and !wiki
-commands share quite much logic, maybe refactor that logic into separate module etc?commandHandler
module