Updated ready.js

This commit is contained in:
Christer Warén 2021-09-02 16:50:45 +03:00
parent bf0811945a
commit 46237fd91e

View File

@ -4,10 +4,7 @@ module.exports = {
name: 'ready', name: 'ready',
async execute(client) { async execute(client) {
console.log('RadioX ' + client.config.version); client.funcs.logger("Bot", "Ready");
console.log('Internet Radio to your Discord guild');
console.log('(c)2020-2021 EximiaBots by Warén Group');
console.log('');
/*DEVELOPERS*/ /*DEVELOPERS*/
client.funcs.logger('Developers'); client.funcs.logger('Developers');
@ -16,7 +13,7 @@ module.exports = {
let user = ""; let user = "";
for (let i = 0; i < client.config.devId.length; i++) { for (let i = 0; i < client.config.devId.length; i++) {
user = await client.users.fetch(client.config.devId[i]); user = await client.users.fetch(client.config.devId[i]);
console.log(" - " + user.tag); console.log("- " + user.tag);
if (i == client.config.devId.length - 1) { if (i == client.config.devId.length - 1) {
client.developers += user.tag; client.developers += user.tag;
} else { } else {
@ -34,7 +31,7 @@ module.exports = {
client.funcs.logger('Stations'); client.funcs.logger('Stations');
client.stations.forEach(station => { client.stations.forEach(station => {
console.log(" - " + station.name); console.log("- " + station.name);
}); });
console.log("\n"); console.log("\n");
@ -68,7 +65,7 @@ module.exports = {
client.funcs.logger('Guilds'); client.funcs.logger('Guilds');
let guilds = await client.guilds.fetch(); let guilds = await client.guilds.fetch();
guilds.forEach(guild => { guilds.forEach(guild => {
console.log(" - " + guild.id + ": " + guild.name); console.log("- " + guild.id + ": " + guild.name);
}); });
console.log("\n"); console.log("\n");