Skip to content

Commit

Permalink
chore: hide discord logs for now to prevent mass ratelimitting
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhuh committed May 7, 2024
1 parent 07d0a96 commit 8cc27bc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/services/logService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ export class LogService {
* To prevent RoleBot from getting your Discord IP blocked for an hour
* collect all errors and batch submit them every minute.
*/
setInterval(() => {
this.batchSendErrors();
}, 60 * 1000);
// setInterval(() => {
// this.batchSendErrors();
// }, 60 * 1000);
}

_prefix: string;
Expand Down Expand Up @@ -96,9 +96,9 @@ export class LogService {
console.log(`${logTypeDate} ${logContent}`);

// We want to batch send errors to the discord webhook.
if (level == LogLevel.critical || level == LogLevel.error) {
this.errors.push(logContent);
}
// if (level == LogLevel.critical || level == LogLevel.error) {
// this.errors.push(logContent);
// }
}

error(content: string, guildId?: string | null) {
Expand Down

0 comments on commit 8cc27bc

Please sign in to comment.