aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-15 08:08:23 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-15 08:08:23 -0400
commit59087bf0d8fa504da997594fc62787695e689476 (patch)
tree79ef24037f96c4a2a27ae86554170c5637ccf6c0 /src
parente5702b5fda9023cd28fc966ce0bce3d9ec432455 (diff)
downloadtanzanite-59087bf0d8fa504da997594fc62787695e689476.tar.gz
tanzanite-59087bf0d8fa504da997594fc62787695e689476.tar.bz2
tanzanite-59087bf0d8fa504da997594fc62787695e689476.zip
add automod logging
Diffstat (limited to 'src')
-rw-r--r--src/listeners/message/automodCreate.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/listeners/message/automodCreate.ts b/src/listeners/message/automodCreate.ts
index 2584c21..c69245a 100644
--- a/src/listeners/message/automodCreate.ts
+++ b/src/listeners/message/automodCreate.ts
@@ -53,6 +53,7 @@ export default class AutomodMessageCreateListener extends BushListener {
moderator: message.guild.me,
reason: 'Saying a blacklisted word.'
});
+
break;
}
case 2: {
@@ -75,6 +76,11 @@ export default class AutomodMessageCreateListener extends BushListener {
}
}
+ void client.console.info(
+ 'AutoMod',
+ `Severity <<${highestOffence}>> action performed on <<${message.author.tag}>> (<<${message.author.id}>>) in <<${message.guild.name}>>`
+ );
+
const color =
highestOffence === 0
? util.colors.lightGray