Skip to content

Instantly share code, notes, and snippets.

@karenying
Created Jun 28, 2020
Embed
What would you like to do?
function createJob() {
const task = cron.schedule(
'32 12 * * 1-5',
() => {
bot.postMessageToChannel('lunchbot-test', 'go eat lunch ali');
},
{
scheduled: true,
timezone: 'America/New_York',
}
);
task.start();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment