From 048c80153f87a989e6450d2ffd261eb5ba55b234 Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Sun, 26 Apr 2020 11:03:16 -0700 Subject: consolelog on join guild, v7.7.1 --- src/bot.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/bot.ts') diff --git a/src/bot.ts b/src/bot.ts index 1a05f46..35c91cb 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -59,6 +59,10 @@ client.once('ready', () => { client.on('error', console.error); //client.on('debug', console.debug); +client.on('guildCreate', guild => { + console.log(`Joined server: ${guild.name}`) +}) + client.on('message', async msg => { var msgContent = msg.content.toLowerCase(); function prefixCheck() { -- cgit v1.2.3