discord cloop fix + 7 secs reconnect interval

This commit is contained in:
ChomeNS 2022-10-29 16:49:51 +07:00
parent c494df0e94
commit aefd3d374a
2 changed files with 3 additions and 3 deletions

View file

@ -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')

View file

@ -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) {}