Skip to content

Instantly share code, notes, and snippets.

@wraithan
Created November 18, 2011 20:48
Show Gist options
  • Select an option

  • Save wraithan/1377705 to your computer and use it in GitHub Desktop.

Select an option

Save wraithan/1377705 to your computer and use it in GitHub Desktop.
config = {
server: 'irc.freenode.net',
nick: 'ZenIRCBot',
options: {
userName: 'zenircbot',
realName: 'ZenIRCBot',
port: 6667,
debug: false,
showErrors: false,
autoRejoin: true,
autoConnect: true,
channels: ['#pdxbots'],
secure: false,
selfSigned: false,
floodProtection: true,
stripColors: false,
},
};
var bot = irc.Client(server, nick[, options]);
var bot = irc.Client(config.server, config.nick, config.options); // sucks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment