mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 09:35:35 -05:00
reason.text
This commit is contained in:
parent
d74480e1d5
commit
becd6fcf16
2 changed files with 5 additions and 4 deletions
|
@ -5,7 +5,7 @@ module.exports = {
|
|||
'cbot ',
|
||||
'/cbot ',
|
||||
],
|
||||
'useChat': true,
|
||||
'useChat': false,
|
||||
'core': {
|
||||
'layers': 1,
|
||||
},
|
||||
|
|
7
index.js
7
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue