diff --git a/bot.js b/bot.js index bd715f1..bb2e7a3 100644 --- a/bot.js +++ b/bot.js @@ -36,6 +36,7 @@ async function createBot (server, config, getBots, setNewBot, dcclient, rl) { port: server.port, version: config.version, kaboom: server.kaboom, + logging: server.logging, checkTimeoutInterval: '30000', keepAlive: false, hideErrors: true diff --git a/config.js b/config.js index a698139..6879142 100644 --- a/config.js +++ b/config.js @@ -63,27 +63,32 @@ module.exports = { { host: 'play.kaboom.pw', port: 25565, - kaboom: true + kaboom: true, + logging: false }, { host: 'sus.shhnowisnottheti.me', port: 25565, - kaboom: true + kaboom: true, + logging: true }, { host: 'kitsune.icu', port: 25565, - kaboom: true + kaboom: true, + logging: true }, { host: 'real.chipmunk.land', port: 25565, - kaboom: true + kaboom: true, + logging: true }// , // { // host: 'mc.chomens41793.ga', // port: 25565, - // kaboom: true + // kaboom: true, + // logging: true // } ] } diff --git a/plugins/console.js b/plugins/console.js index bd1c993..5527a4c 100644 --- a/plugins/console.js +++ b/plugins/console.js @@ -33,6 +33,7 @@ function inject (bot, _dcclient, config, rl) { } bot.on('parsed_chat', (message) => { + if (!bot.options.logging) return bot.console.log(message.toAnsi()) })