mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
config.console fix
This commit is contained in:
parent
84ad91a574
commit
48d54532a5
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,6 @@ const moment = require('moment-timezone')
|
||||||
const util = require('util')
|
const util = require('util')
|
||||||
|
|
||||||
function inject (bot, _dcclient, config, rl) {
|
function inject (bot, _dcclient, config, rl) {
|
||||||
if (!config.console) return
|
|
||||||
|
|
||||||
// readline > fix on log
|
// readline > fix on log
|
||||||
function log (...args) {
|
function log (...args) {
|
||||||
rl.output.write('\x1b[2K\r')
|
rl.output.write('\x1b[2K\r')
|
||||||
|
@ -38,6 +36,8 @@ function inject (bot, _dcclient, config, rl) {
|
||||||
bot.console.log(message.toAnsi())
|
bot.console.log(message.toAnsi())
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (!config.console) return
|
||||||
|
|
||||||
function handleLine (line) {
|
function handleLine (line) {
|
||||||
try {
|
try {
|
||||||
if (line.toLowerCase() === '' ||
|
if (line.toLowerCase() === '' ||
|
||||||
|
|
Loading…
Reference in a new issue