mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 08:20:58 -05:00
Remove stuff that aren't supposed to be in production
This commit is contained in:
parent
a0aa3518d7
commit
1e6c7ad8e3
@ -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}`);
|
||||
|
@ -5,7 +5,7 @@ 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);
|
||||
|
Loading…
Reference in New Issue
Block a user