discord_bot/util/updatePresence.js
SileNce5k 52a15e2c19
Add uptime as a presence text choice for the bot
idk what the fuck I'm doing anymore so I'm just adding random useless
shit that no one neeeds. I'm the only fucker using this shitty bot and
I'm probably not even gonna be using this shitty feature myself...
2022-04-27 11:46:40 +02:00

14 lines
507 B
JavaScript

const setPresence = require('./setPresence')
module.exports = function (client) {
const updatePresence = require('./updatePresence')
let presenceText = client.settings.get("presenceText")
let presenceType = client.settings.get("presenceType")
if(presenceText.includes("${guilds}") || presenceText.includes("${prefix}") || presenceText.includes("${uptime}")) {
setPresence({presenceText: presenceText, presenceType: presenceType, client: client});
}
setTimeout(updatePresence, 60000, client)
}