mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-18 13:14:15 +02:00
fix(arabot): add snowflake for channel logs
This commit is contained in:
parent
a1469e0596
commit
cd319609b0
@ -60,7 +60,9 @@ export class FixRolesOnReady extends Listener {
|
|||||||
|
|
||||||
// Fetching the channel for the logs
|
// Fetching the channel for the logs
|
||||||
// Leave the snowflake parameter empty for no logs
|
// Leave the snowflake parameter empty for no logs
|
||||||
const logChannel = await client.channels.fetch('');
|
const logChannel = await client.channels
|
||||||
|
.fetch('1329152627312824320')
|
||||||
|
.catch(() => null);
|
||||||
const sendLogs = logChannel !== null;
|
const sendLogs = logChannel !== null;
|
||||||
|
|
||||||
if (!sendLogs) {
|
if (!sendLogs) {
|
||||||
@ -152,6 +154,8 @@ export class FixRolesOnReady extends Listener {
|
|||||||
|
|
||||||
if (xp !== null && xp.xp > 0) {
|
if (xp !== null && xp.xp > 0) {
|
||||||
roles.push(IDs.roles.nonvegan.nonvegan);
|
roles.push(IDs.roles.nonvegan.nonvegan);
|
||||||
|
} else {
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -167,7 +171,7 @@ export class FixRolesOnReady extends Listener {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Add a delay so that there's around 4 users processed a second
|
// Add a delay so that there's around 4 users processed a second
|
||||||
await this.delay(250);
|
await this.delay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send the logs that the fix has finished.
|
// Send the logs that the fix has finished.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user