mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 09:35:35 -05:00
discord cloop fix + 7 secs reconnect interval
This commit is contained in:
parent
c494df0e94
commit
aefd3d374a
2 changed files with 3 additions and 3 deletions
|
@ -108,7 +108,7 @@ module.exports = {
|
|||
if (args[0]==='add') {
|
||||
if (message.member.roles.cache.some((role) => role.name === 'Trusted')) {
|
||||
if (args[2]) {
|
||||
if (!Number(args[1])) throw new SyntaxError('Invalid interval');
|
||||
if (!Number(args[1]) && Number(args[1]) !== 0) throw new SyntaxError('Invalid interval');
|
||||
add(args.slice(2).join(' '), args[1], bot);
|
||||
const Embed = new MessageEmbed()
|
||||
.setColor('#FFFF00')
|
||||
|
|
4
index.js
4
index.js
|
@ -183,8 +183,8 @@ function main() {
|
|||
|
||||
try {
|
||||
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;
|
||||
if (reason.text === 'Wait 5 seconds before connecting, thanks! :)') timeout = 1000 * 7;
|
||||
if (reason.text === 'You are logging in too fast, try again later.') timeout = 1000 * 7;
|
||||
}
|
||||
} catch (e) {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue