Skip to content

Commit a739a69

Browse files
committed
Fixed a bug where set presences would disappear
1 parent 938bfdd commit a739a69

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

js/load.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ let load = async (token) => {
4646
}
4747

4848
bot.on('ready', async () => {
49+
50+
// Reset the timer on the presence thing (heartbeat)
51+
let presenceInterval = setInterval(()=>{
52+
bot.user.setPresence(bot.user.presence);
53+
}, 180000); // runs every 3 minutes
54+
55+
4956
// Update the loading bar
5057
async function continueLoad() {
5158
// Load and start all the scripts

0 commit comments

Comments
 (0)