debug online list

This commit is contained in:
SowinskiBraeden committed 2023-04-23 11:46:50 -07:00
1 parent 4a079869d6
commit ab0cd7fe67
4 files changed
+39 -22

No files matched your search

+3 -3
View File
@@ -20,10 +20,10 @@ module.exports = {
* @param {*} param3
*/
run: async (client, interaction, args, { GuildDB }, start) => {
let activePlayers = GuildDB.playerstats.filter(p => p.connected);
let des = ``;
let activePlayers = GuildDB.playerstats.filter(p => p.connected == true);
let des = activePlayers.length > 0 ? `` : `**No Players Online**`;
for (let i = 0; i < activePlayers.length; i++) {
des += `**- ${activePlayers[i].gamertag}\n`;
}