Created
December 22, 2011 14:53
-
-
Save mmalecki/1510569 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var irc = require('irc'); | |
var client = new irc.Client( | |
'irc.freenode.net', | |
'threeLinksBot', | |
{ channels: ['#nodejitsu', '#nodebombrange'] } | |
); | |
client.on('message', function (from, to, msg) { | |
if (msg == '!threelinks') { | |
['handbook', 'docs', 'cheatsheet'].forEach(function (item) { | |
client.say(to, '!help ' + item); | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A simple way to write and deploy an irc bot
Edit
config.json