Skip to content

Instantly share code, notes, and snippets.

@captDaylight
Last active May 22, 2016 21:04
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/57ada4d016946be0abdc23cf650515f6 to your computer and use it in GitHub Desktop.
Save captDaylight/57ada4d016946be0abdc23cf650515f6 to your computer and use it in GitHub Desktop.
channels.get(channel, (err, data) => {
...
if (onlyOnePlayed) {
channels.save(updateData, (err) => {
if (err) throw err;
bot.reply(message, `<@${user}> has played!`);
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment