List developers in ready.js

This commit is contained in:
Christer Warén 2021-08-31 13:59:38 +03:00
parent 73e2427a21
commit fe165f03c6

View File

@ -10,16 +10,20 @@ module.exports = {
console.log(''); console.log('');
/*DEVELOPERS*/ /*DEVELOPERS*/
client.funcs.logger('Developers', 'List');
client.developers = ""; client.developers = "";
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);
if (i == client.config.devId.length - 1) { if (i == client.config.devId.length - 1) {
client.developers += user.tag; client.developers += user.tag;
} else { } else {
client.developers += user.tag + " & "; client.developers += user.tag + " & ";
} }
} }
console.log("\n");
/*STATIONS*/ /*STATIONS*/
try { try {