mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
another try catch real
This commit is contained in:
parent
4f92ea97ee
commit
06cf553b59
1 changed files with 3 additions and 1 deletions
4
index.js
4
index.js
|
@ -387,9 +387,11 @@ function main() {
|
|||
|
||||
let timeout = 1000;
|
||||
|
||||
if (typeof reason.text!=='undefined') {
|
||||
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;
|
||||
} catch (e) {
|
||||
console.log(e.message);
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue