mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-28 13:05:38 -05:00
mpstats is done being tested, sorry PS
This commit is contained in:
parent
17ae60b5c5
commit
4f80812722
@ -67,14 +67,13 @@ setInterval(async()=>{
|
|||||||
const completedURL_DSS = DBURL + '/feed/dedicated-server-stats.json?code=' + DBCode
|
const completedURL_DSS = DBURL + '/feed/dedicated-server-stats.json?code=' + DBCode
|
||||||
const completedURL_CSG = DBURL + '/feed/dedicated-server-savegame.html?code=' + DBCode + '&file=careerSavegame'
|
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})
|
if (!verifyURL) return msg.edit({content: 'Invalid gameserver IP, please update!', embeds: null})
|
||||||
console.log(DBURL + '\n' + DBCode)
|
|
||||||
try {
|
try {
|
||||||
Server = await client.axios.get(completedURL_DSS, {timeout: 4000})
|
Server = await client.axios.get(completedURL_DSS, {timeout: 4000})
|
||||||
} catch (err){
|
} catch (err){
|
||||||
if (client.config.botSwitches.mpstatsDebug) {
|
if (client.config.botSwitches.mpstatsDebug) {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
} else {
|
} 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)
|
embed.setTitle('Host is not responding.').setColor(client.config.embedColorRed)
|
||||||
msg.edit({content: null, embeds: [embed]})
|
msg.edit({content: null, embeds: [embed]})
|
||||||
|
Loading…
Reference in New Issue
Block a user