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')
|
||||
|
||||
function inject (bot, _dcclient, config, rl) {
|
||||
if (!config.console) return
|
||||
|
||||
// readline > fix on log
|
||||
function log (...args) {
|
||||
rl.output.write('\x1b[2K\r')
|
||||
|
@ -38,6 +36,8 @@ function inject (bot, _dcclient, config, rl) {
|
|||
bot.console.log(message.toAnsi())
|
||||
})
|
||||
|
||||
if (!config.console) return
|
||||
|
||||
function handleLine (line) {
|
||||
try {
|
||||
if (line.toLowerCase() === '' ||
|
||||
|
|
Loading…
Reference in a new issue