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

mpstats is done being tested, sorry PS

This commit is contained in:
toast-ts 2022-11-22 21:53:29 +11:00
parent 701a6bb2c9
commit 141387ec50

View File

@ -67,14 +67,13 @@ setInterval(async()=>{
const completedURL_DSS = DBURL + '/feed/dedicated-server-stats.json?code=' + DBCode
const completedURL_CSG = DBURL + '/feed/dedicated-server-savegame.html?code=' + DBCode + '&file=careerSavegame'
if (!verifyURL) return msg.edit({content: 'Invalid gameserver IP, please update!', embeds: null})
console.log(DBURL + '\n' + DBCode)
try {
Server = await client.axios.get(completedURL_DSS, {timeout: 4000})
} catch (err){
if (client.config.botSwitches.mpstatsDebug) {
console.log(err)
} else {
console.log(`[${client.moment().format('DD/MM/YY HH:mm:ss')}] dag mp dss fail`)
console.log(`[${client.moment().format('DD/MM/YY HH:mm:ss')}] dag mp dss fail, maybe host isn't responding?`)
}
embed.setTitle('Host is not responding.').setColor(client.config.embedColorRed)
msg.edit({content: null, embeds: [embed]})