From 289f1f6fefa08a47ac359ca23d0116044fddd22b Mon Sep 17 00:00:00 2001 From: Zerio <43386412+ZerioDev@users.noreply.github.com> Date: Wed, 24 Jun 2020 15:07:24 +0200 Subject: [PATCH] =?UTF-8?q?=E2=8C=9B=EF=B8=8F=20Add=20events?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- events/ready.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 events/ready.js diff --git a/events/ready.js b/events/ready.js new file mode 100644 index 0000000..692338a --- /dev/null +++ b/events/ready.js @@ -0,0 +1,11 @@ +const config = require(`../config/bot.json`) + +module.exports = async (client) => { + + //If the bot is ready it sends a message in the console + console.log(`Ready on ${client.guilds.cache.size} servers, for a total of ${client.users.cache.size} users`); + + //Game + client.user.setActivity(config.game) + +}