This commit is contained in:
memetrollsXD 2022-08-03 03:09:54 +02:00
commit 994c8448bc
No known key found for this signature in database
GPG Key ID: 105C2F3417AC32CD
2 changed files with 6 additions and 2 deletions

View File

@ -25,6 +25,10 @@ export default async function handle(command: Command) {
c.log("No target specified"); c.log("No target specified");
c.log("Possible targets: "); c.log("Possible targets: ");
possibleTargets.forEach(x => c.trail(`${x.id} (UID: ${x.uid})`)); possibleTargets.forEach(x => c.trail(`${x.id} (UID: ${x.uid})`));
if(!possibleTargets[1] && possibleTargets[0]){
c.log(`Auto target the only session ${possibleTargets[0].uid}`);
Interface.target = possibleTargets[0].session;
}
return; return;
} }

View File

@ -7,7 +7,7 @@ const DEFAULT_CONFIG = {
VERBOSE_LEVEL: 1, VERBOSE_LEVEL: 1,
// MongoDB // MongoDB
MONGO_URI: "mongodb://localhost:27017/crepesr", MONGO_URI: "mongodb://0.0.0.0:27017/crepesr",
// HTTP // HTTP
HTTP: { HTTP: {
@ -82,4 +82,4 @@ export default class Config {
} = Config.config.GAMESERVER; } = Config.config.GAMESERVER;
private constructor() { } private constructor() { }
} }