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

Remove stuff that aren't supposed to be in production

This commit is contained in:
toast-ts 2023-10-08 08:09:30 +11:00
parent 805d2ed0c7
commit 969618843b
2 changed files with 2 additions and 3 deletions

View File

@ -22,7 +22,6 @@ export default async(client:TClient, Channel:string, Message:string, Server:TSer
try {
const hitDSS = await fetch(Server.ip+'/feed/dedicated-server-stats.json?code='+Server.code, sessionInit).then(r=>r.json() as Promise<FSData>);
const hitCSG = await fetch(Server.ip+'/feed/dedicated-server-savegame.html?code='+Server.code+'&file=careerSavegame', sessionInit).then(async r=>(new client.fxp.XMLParser({ignoreAttributes: false, transformAttributeName(attributeName){return attributeName.replaceAll('@_','')}}).parse(await r.text()) as any).careerSavegame as FSCareerSavegame);
console.log(hitCSG.settings)
if (!hitDSS ?? !hitCSG){
if (hitDSS && !hitDSS.slots) return Logger.forwardToConsole('log', 'MPModule', `DSS failed with unknown slots table for ${client.MPServerCache[ServerName].name}`);

View File

@ -5,11 +5,11 @@ export default class ConfigHelper {
let importconfig:Config;
try {
importconfig = JSON.parse(readFileSync(configFile, 'utf8'));
console.log(`Using development config :: ${importconfig.configName}`);
console.log(`Loaded the config :: ${importconfig.configName}`);
} catch (e) {
console.error(`Error loading config file "${configFile}": ${e}`);
process.exit(1);
}
return importconfig;
}
}
}