Skip to content

Instantly share code, notes, and snippets.

@AlisamfP AlisamfP/irc_bot
Created Sep 24, 2014

What would you like to do?
var irc = require('irc');
var config = {
server: '',
name: 'testBot',
channels: '#testRoom'
var bot = new irc.Client(config.server,, { channels: [config.channels] });
bot.addListener('error', function(err){
console.log('error: ' + err);
bot.addListener('message', function(to, from, msg){
console.log(from + ': ' + msg);
bot.join(config.channels, function(){
bot.say(config.channels, 'Hello!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.