You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
430 B
17 lines
430 B
const moment = require('moment');
|
|
require('moment-precise-range-plugin');
|
|
const EventEmitter = require('node:events');
|
|
|
|
module.exports = client => {
|
|
client.misc.timeTracker = new EventEmitter();
|
|
|
|
setInterval(() => {
|
|
|
|
const time = moment();
|
|
|
|
if (time.hour() === 20 && time.minute() === 0) {client.misc.timeTracker.emit('bullySavi');}
|
|
|
|
client.misc.timeTracker.emit('minute', time);
|
|
|
|
}, 60000);
|
|
}; |