Skip to content

Instantly share code, notes, and snippets.

@datalet
Last active February 9, 2017 08:27
Show Gist options
  • Save datalet/423011a3ace1d96ab869056ce9d39f82 to your computer and use it in GitHub Desktop.
Save datalet/423011a3ace1d96ab869056ce9d39f82 to your computer and use it in GitHub Desktop.
every minute to increment the counter in BotD
cron add "* * * * ? *" !
```
db.counter = (db.counter || 0) + 1;
console.log(`current counter ${db.counter}`)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment