playing playing games

This commit is contained in:
2019-06-11 10:27:06 +10:00
parent 9f457e3507
commit 706865b51d
2 changed files with 77 additions and 79 deletions

View File

@@ -9,7 +9,6 @@ module.exports = {
client.user.setStatus('idle')
setInterval(on15Update, 900000)
function on15Update() {
var currentUpdate = Math.round((moment().day() * 24 * 60 + (moment().hour() * 60) + moment().minute()) / 15)
fs.readFile("workweek.json", "utf8", function (err, data) {
@@ -17,6 +16,7 @@ module.exports = {
client.user.setActivity(workweek.workweek[currentUpdate], { type: 'PLAYING' })
})
}
on15Update()
client.on("message", (msg) => {
@@ -25,7 +25,5 @@ module.exports = {
setTimeout(() => { client.user.setStatus('idle') }, 60000 * 5)
})
}
}