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; }