mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-18 13:54:12 +02:00
Compare commits
4 Commits
616334f123
...
9b3908cdc4
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9b3908cdc4 | ||
![]() |
513d3ec581 | ||
![]() |
2518376f3b | ||
![]() |
f4f83e51b2 |
@ -126,8 +126,12 @@ export class FixRolesOnReady extends Listener {
|
||||
);
|
||||
}
|
||||
|
||||
// Checks if the user is vegan
|
||||
if (member.roles.cache.has(IDs.roles.vegan.vegan)) {
|
||||
// Checks if the user already has vegan or non-vegan role
|
||||
if (
|
||||
member.roles.cache.has(IDs.roles.vegan.vegan) ||
|
||||
member.roles.cache.has(IDs.roles.nonvegan.nonvegan)
|
||||
) {
|
||||
await this.delay(1000);
|
||||
count++;
|
||||
continue;
|
||||
}
|
||||
@ -174,7 +178,7 @@ export class FixRolesOnReady extends Listener {
|
||||
);
|
||||
|
||||
// Add a delay so that there's around 4 users processed a second
|
||||
await this.delay(500);
|
||||
await this.delay(5000);
|
||||
}
|
||||
|
||||
// Send the logs that the fix has finished.
|
||||
|
Loading…
x
Reference in New Issue
Block a user