diff --git a/bot.js b/bot.js index 0a703d4..4014b97 100644 --- a/bot.js +++ b/bot.js @@ -25,6 +25,7 @@ async function createBot (server, config, getBots, setNewBot, dcclient, rl) { version: config.version, kaboom: server.kaboom, logging: server.logging, + useChat: server.useChat, checkTimeoutInterval: config.timeoutInterval, hideErrors: true } diff --git a/config.js b/config.js index 769a1f3..4fd6d2c 100644 --- a/config.js +++ b/config.js @@ -16,8 +16,7 @@ module.exports = { }, console: true, chat: { - useChat: false, - messageLength: 100 + messageLength: 128 }, core: { layers: 3, @@ -77,32 +76,36 @@ module.exports = { host: 'play.kaboom.pw', port: 25565, kaboom: true, - logging: true + logging: true, + useChat: false + }, + { + host: 'sus.shhnowisnottheti.me', + port: 25565, + kaboom: false, + logging: true, + useChat: true }, - // R.I.P ayunboom - // { - // host: 'sus.shhnowisnottheti.me', - // port: 25565, - // kaboom: true, - // logging: true - // }, { host: 'kitsune.icu', port: 25565, kaboom: true, - logging: false + logging: false, + useChat: false }, { host: 'play.chipmunk.land', port: 25565, kaboom: true, - logging: true + logging: true, + useChat: false }, { host: 'chayapak.chipmunk.land', port: 25565, kaboom: true, - logging: true + logging: true, + useChat: false } ] } diff --git a/plugins/tellraw.js b/plugins/tellraw.js index f5d859a..a79aa7c 100644 --- a/plugins/tellraw.js +++ b/plugins/tellraw.js @@ -1,7 +1,7 @@ function inject (bot, dcclient, config) { const ChatMessage = require('prismarine-chat')(bot.version) bot.tellraw = function (selector, message) { - if (config.chat.useChat && selector === '@a') { + if (bot.options.useChat && selector === '@a') { bot.chat(ChatMessage.fromNotch(message).toMotd().replaceAll('\xa7', '&')) return }