From ec30dcbfb83d55d4bda563d1915e3214c540661c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Wed, 6 Apr 2022 21:46:13 +0300 Subject: [PATCH] Update --- src/client/classes/Stations.js | 4 +--- src/client/events/ready.js | 9 ++------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/client/classes/Stations.js b/src/client/classes/Stations.js index 62bfdf1..67d67c5 100644 --- a/src/client/classes/Stations.js +++ b/src/client/classes/Stations.js @@ -25,11 +25,9 @@ module.exports = class Stations extends Array { }); if(options.show){ - this.logger('Stations'); list.forEach(station => { - console.log("- " + station.name); + this.logger('Stations', station.name); }); - console.log("\n"); } list.forEach(async station => { diff --git a/src/client/events/ready.js b/src/client/events/ready.js index ccae145..20ad6f0 100644 --- a/src/client/events/ready.js +++ b/src/client/events/ready.js @@ -23,20 +23,17 @@ module.exports = { client.funcs.logger('Datastore', 'Ready'); /*DEVELOPERS*/ - client.funcs.logger('Developers'); - client.developers = ""; let user = ""; for (let i = 0; i < client.config.devId.length; i++) { user = await client.users.fetch(client.config.devId[i]); - console.log("- " + user.tag); + client.funcs.logger('Developers', user.tag); if (i == client.config.devId.length - 1) { client.developers += user.tag; } else { client.developers += user.tag + " & "; } } - console.log("\n"); /*STATIONS*/ client.stations = new Stations(); @@ -63,12 +60,10 @@ module.exports = { /*GUILDS*/ client.funcs.logger('Guilds', 'Started fetching list'); - client.funcs.logger('Guilds'); let guilds = await client.guilds.fetch(); guilds.forEach(guild => { - console.log("- " + guild.id + " / " + guild.name); + client.funcs.logger('Guilds', guild.id + " / " + guild.name); }); - console.log("\n"); client.funcs.logger('Guilds', 'Successfully fetched list');