From 75065c9be6c88c3bc34ee4ad91fde5d1468f7415 Mon Sep 17 00:00:00 2001 From: nguen <104498646+gawgua@users.noreply.github.com> Date: Wed, 3 Aug 2022 06:38:44 +0700 Subject: [PATCH 1/2] QoL: Auto target the only session (#22) --- src/commands/target.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/target.ts b/src/commands/target.ts index 84826d6..cb4812b 100644 --- a/src/commands/target.ts +++ b/src/commands/target.ts @@ -25,6 +25,10 @@ export default async function handle(command: Command) { c.log("No target specified"); c.log("Possible targets: "); 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; } From 8940ca3d585dfab577dfb6254840db73dee4d1de Mon Sep 17 00:00:00 2001 From: Saku <67262050+saku-bruh@users.noreply.github.com> Date: Wed, 3 Aug 2022 02:59:53 +0300 Subject: [PATCH 2/2] Add correct adress to Config.ts (#23) --- src/util/Config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/Config.ts b/src/util/Config.ts index 66d8652..2eb2548 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts @@ -7,7 +7,7 @@ const DEFAULT_CONFIG = { VERBOSE_LEVEL: 1, // MongoDB - MONGO_URI: "mongodb://localhost:27017/crepesr", + MONGO_URI: "mongodb://0.0.0.0:27017/crepesr", // HTTP HTTP: { @@ -82,4 +82,4 @@ export default class Config { } = Config.config.GAMESERVER; private constructor() { } -} \ No newline at end of file +}