1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 04:10:59 -05:00

Update MPLoop.ts

This commit is contained in:
Toast 2023-08-28 14:23:49 +10:00 committed by GitHub
parent 7d2e1e5770
commit e964841943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ export default async(client:TClient, Channel:string, Message:string, Server:TSer
{name: 'Timescale', value: isNaN(Number(hitCSG.settings?.timeScale._text)) === true ? 'Unavailable' : formatTimescale(Number(hitCSG.settings?.timeScale._text), 0, 'x'), inline: true} {name: 'Timescale', value: isNaN(Number(hitCSG.settings?.timeScale._text)) === true ? 'Unavailable' : formatTimescale(Number(hitCSG.settings?.timeScale._text), 0, 'x'), inline: true}
); );
const playersEmbed = new client.embed().setColor(client.config.embedColor).setTitle(hitDSS.server.name).setDescription(hitDSS.slots.used < 1 ? '*No players online*' : playerData.join('\n\n')).setAuthor({name:`${hitDSS.slots.used}/${hitDSS.slots.capacity}`}); const playersEmbed = new client.embed().setColor(client.config.embedColor).setTitle(hitDSS.server.name).setDescription(hitDSS.slots.used < 1 ? '*No players online*' : playerData.join('\n\n')).setAuthor({name:`${hitDSS.slots.used}/${hitDSS.slots.capacity}`});
msg.edit({content:'This embed updates every 30 seconds.',embeds:[serverDetails, playersEmbed]}); msg.edit({content:'This embed updates every 35 seconds.',embeds:[serverDetails, playersEmbed]});
} }
} catch(err) { } catch(err) {
msg.edit({content: null, embeds: [new client.embed().setColor(client.config.embedColorRed).setTitle('Host did not respond back in time')]}); msg.edit({content: null, embeds: [new client.embed().setColor(client.config.embedColorRed).setTitle('Host did not respond back in time')]});
@ -92,5 +92,5 @@ export default async(client:TClient, Channel:string, Message:string, Server:TSer
} }
} }
HITALL(); HITALL();
// Hit dem servers in the head every 30 seconds. // Hit dem servers in the head every 35 seconds.
} }