Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
🐛 Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilbert142 committed Dec 4, 2018
1 parent 036543e commit 83124d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Internals/Events/message/GAB.SpamHandler.js
Expand Up @@ -140,7 +140,7 @@ class SpamHandler extends BaseEvent {
violatorRoleID = this.serverDocument.config.moderation.filters.spam_filter.violator_role_id;
}
// eslint-disable-next-line max-len
this.client.handleViolation(msg.guild, this.serverDocument, msg.channel, msg.member, userDocument, memberDocument, `You continued to spam in #${msg.channel.name} (${msg.channel}) on ${msg.guild}`, `**@${this.bot.getName(this.serverDocument, msg.member, true)}** (${msg.member}) continues to spam in #${msg.channel.name} (${msg.channel}) on ${msg.guild}`, `Second-time spam violation in #${msg.channel.name} (${msg.channel})`, this.serverDocument.config.moderation.filters.spam_filter.action, violatorRoleID);
this.client.handleViolation(msg.guild, this.serverDocument, msg.channel, msg.member, userDocument, memberDocument, `You continued to spam in #${msg.channel.name} (${msg.channel}) on ${msg.guild}`, `**@${this.client.getName(this.serverDocument, msg.member, true)}** (${msg.member}) continues to spam in #${msg.channel.name} (${msg.channel}) on ${msg.guild}`, `Second-time spam violation in #${msg.channel.name} (${msg.channel})`, this.serverDocument.config.moderation.filters.spam_filter.action, violatorRoleID);
}
await userDocument.save().catch(err => {
winston.debug(`Failed to save user document...`, err);
Expand Down

0 comments on commit 83124d5

Please sign in to comment.