|
|
@ -47,6 +47,7 @@ var Job = require('cron').CronJob;
|
|
|
|
var timer = new Job(
|
|
|
|
var timer = new Job(
|
|
|
|
new Date(new Date().setMinutes(new Date().getMinutes()+parseInt(args[args.length-1]))),
|
|
|
|
new Date(new Date().setMinutes(new Date().getMinutes()+parseInt(args[args.length-1]))),
|
|
|
|
function() {
|
|
|
|
function() {
|
|
|
|
|
|
|
|
console.log('Reminder:', message.author.id, 'is being reminded of', reminderMessage, 'in', args[args.length-1]);
|
|
|
|
message.author.send(reminderMessage)
|
|
|
|
message.author.send(reminderMessage)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|