Skip to content

Instantly share code, notes, and snippets.

@captDaylight
Last active May 22, 2016 20:19
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 captDaylight/972ee7b3e3c289e5e701a65a2ae4a2a5 to your computer and use it in GitHub Desktop.
Save captDaylight/972ee7b3e3c289e5e701a65a2ae4a2a5 to your computer and use it in GitHub Desktop.
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