QoL: Auto target the only session (#22)
This commit is contained in:
parent
be8200ebf3
commit
75065c9be6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user