aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-01-09 18:22:55 +0100
committerMinteck <contact@minteck.org>2022-01-09 18:22:55 +0100
commit7d0d6272c8bf5260da53210c8ed327980e396397 (patch)
tree6812176231961767e9b7aa731193abb387bbc107 /bot.js
parentdc65563df84d80bcc0970febef6a5f9a7759bdcb (diff)
downloadponyfind-7d0d6272c8bf5260da53210c8ed327980e396397.tar.gz
ponyfind-7d0d6272c8bf5260da53210c8ed327980e396397.tar.bz2
ponyfind-7d0d6272c8bf5260da53210c8ed327980e396397.zip
Update
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js2
1 files changed, 2 insertions, 0 deletions
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");