From 439ec2202450ec741946dd9e905c40ff24e6c041 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 24 Apr 2017 02:08:27 +0000 Subject: [PATCH] Add Owner to Logger --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 792e14bb..b8af6c6c 100644 --- a/index.js +++ b/index.js @@ -29,11 +29,11 @@ client.registry .registerCommandsIn(path.join(__dirname, 'commands')); client.on('guildCreate', async(guild) => { - console.log(`[Guild] I have joined ${guild.name}!`); + console.log(`[Guild] I have joined ${guild.name}! (Owned by ${guild.owner.user.tag})`); const guilds = await client.shard.fetchClientValues('guilds.size'); const count = guilds.reduce((prev, val) => prev + val, 0); console.log(`[Count] ${count}`); - webhook(`Joined ${guild.name}!`, `Shard ${client.shard.id}`, 0x33CC33); + webhook(`Joined ${guild.name}!\nOwned by: ${guild.owner.user.tag}`, `Shard ${client.shard.id}`, 0x33CC33); try { const carbonStats = await carbon(count); console.log(`[Carbon] Successfully posted to Carbon. ${carbonStats}`); @@ -49,11 +49,11 @@ client.on('guildCreate', async(guild) => { }); client.on('guildDelete', async(guild) => { - console.log(`[Guild] I have left ${guild.name}...`); + console.log(`[Guild] I have left ${guild.name}... (Owned by ${guild.owner.user.tag})`); const guilds = await client.shard.fetchClientValues('guilds.size'); const count = guilds.reduce((prev, val) => prev + val, 0); console.log(`[Count] ${count}`); - webhook(`Left ${guild.name}...`, `Shard ${client.shard.id}`, 0xFF3300); + webhook(`Left ${guild.name}...\nOwned by: ${guild.owner.user.tag}`, `Shard ${client.shard.id}`, 0xFF3300); try { const carbonStats = await carbon(count); console.log(`[Carbon] Successfully posted to Carbon. ${carbonStats}`);