Skip to content

Instantly share code, notes, and snippets.

@Harrison-M
Created June 10, 2014 02:17
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 Harrison-M/f20cbf5e9080912f1d18 to your computer and use it in GitHub Desktop.
Save Harrison-M/f20cbf5e9080912f1d18 to your computer and use it in GitHub Desktop.
client.say('ChanServ', 'invite #channel');
client.addListener('pm', function (from, message) {
if(from === 'ChanServ'){
client.join('#channel ' + message); //Assuming all that's in the message is the password
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment