summaryrefslogtreecommitdiff
path: root/src/bot.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-26 11:03:16 -0700
committer8cy <[email protected]>2020-04-26 11:03:16 -0700
commit048c80153f87a989e6450d2ffd261eb5ba55b234 (patch)
tree6f27acf1584565c5c8248b52064baad55dcbe3e2 /src/bot.ts
parentadd math todo (diff)
downloaddep-core-048c80153f87a989e6450d2ffd261eb5ba55b234.tar.xz
dep-core-048c80153f87a989e6450d2ffd261eb5ba55b234.zip
consolelog on join guild, v7.7.1
Diffstat (limited to 'src/bot.ts')
-rw-r--r--src/bot.ts4
1 files changed, 4 insertions, 0 deletions
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() {