fix console

This commit is contained in:
ChomeNS 2022-11-17 13:38:13 +07:00
parent c8b416e780
commit 820f7ad576

View file

@ -43,6 +43,7 @@ function inject(bot, _dcclient, config, rl) {
bot.once('end', () => {
clearInterval(consoleQueueInterval);
rl.close();
rl.removeAllListeners();
});
@ -60,8 +61,7 @@ function inject(bot, _dcclient, config, rl) {
if (line.startsWith('.csvr ')) {
const host = line.substring(6);
const bots = bot.getBots();
bots.forEach((bot) => bot.console.host = host);
bot.getBots().forEach((bot) => bot.console.host = host);
bot.console.info(`Host set to: ${host}`);
return;
}