From 7d0d6272c8bf5260da53210c8ed327980e396397 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 9 Jan 2022 18:22:55 +0100 Subject: Update --- bot.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bot.js') diff --git a/bot.js b/bot.js index 978544b..2cdcce8 100644 --- a/bot.js +++ b/bot.js @@ -25,6 +25,7 @@ const errorHandler = require('./handler/errors'); global.langs = JSON.parse(fs.readFileSync("./user/userdata.json")); global.spoils = JSON.parse(fs.readFileSync("./user/spoilers.json")); global.servers = JSON.parse(fs.readFileSync("./user/servers.json")); +global.cooldowns = {}; global.l = (en, fr, id, gid) => { if (typeof servers[gid] !== "undefined") { @@ -45,6 +46,7 @@ global.l = (en, fr, id, gid) => { const commands = require('./modules/registers'); client.on('ready', async () => { + client.user.setActivity("/help", { type: "LISTENING" }) console.log(`Logged in as ${client.user.tag}!`); console.log("Started refreshing application (/) commands globally"); -- cgit