diff --git a/config.js b/config.js index 30fa287..eb2fb29 100644 --- a/config.js +++ b/config.js @@ -5,7 +5,7 @@ module.exports = { 'cbot ', '/cbot ', ], - 'useChat': true, + 'useChat': false, 'core': { 'layers': 1, }, diff --git a/index.js b/index.js index 27b5879..7837757 100644 --- a/index.js +++ b/index.js @@ -156,7 +156,6 @@ function main() { try { if (bot.queue[0]) { try { - console.log(bot.queue[0]); if (containsIllegalCharacters(bot.queue[0])) { bot.queue.shift(); return; @@ -393,8 +392,10 @@ function main() { let timeout = 1000; try { - if (reason.text.find((data) => data.text === 'Wait 5 seconds before connecting, thanks! :)')) timeout = 1000 * 6; - if (reason.text.find((data) => data.text === 'You are logging in too fast, try again later.')) timeout = 1000 * 6; + if (reason.text) { + if (reason.text === 'Wait 5 seconds before connecting, thanks! :)') timeout = 1000 * 6; + if (reason.text === 'You are logging in too fast, try again later.') timeout = 1000 * 6; + } } catch (e) { console.log(e.message); }