Last active
May 22, 2016 20:19
-
-
Save captDaylight/972ee7b3e3c289e5e701a65a2ae4a2a5 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
hears([‘play’], ‘direct_message,direct_mention,mention’, (bot, message) => { | |
... | |
channels.save(gameData, (err) => { | |
if (err) throw err; | |
bot.say({ | |
text: `<@${playerTwo}> you've been challenged to a game of ROCK PAPER SCISSORS by <@${user}>, say \`accept\` unless you're too scared.`, | |
channel, | |
}); | |
bot.startPrivateConversation(message, callback); | |
}); | |
} else { | |
... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment