Skip to content

Instantly share code, notes, and snippets.

@wraithan
Created August 6, 2011 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wraithan/1129538 to your computer and use it in GitHub Desktop.
Save wraithan/1129538 to your computer and use it in GitHub Desktop.
privmsg comes in:
parse it
privmsg = {
sender: 'sendername',
direct: true, // if botname: or prefix like !
message: 'whoa message',
};
publish(channel + '_out', privmsg);
or
privmsg = {
channel: 'channelname',
sender: 'sendername',
direct: true, // if botname: or prefix like !
message: 'whoa message',
};
publish('out', privmsg);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment