Created
June 10, 2014 02:17
-
-
Save Harrison-M/f20cbf5e9080912f1d18 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
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