mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
fix console
This commit is contained in:
parent
c8b416e780
commit
820f7ad576
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue