aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/message
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-23 20:17:13 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-23 20:17:13 -0400
commit5d33e1aa43444850084b4794b7d870e67dbb474e (patch)
tree3c98cbb49ce896d0ca3e65b13c5cded0f8580359 /src/listeners/message
parentfa9e2fea668f0f1aaa766288599393e6816c58bc (diff)
downloadtanzanite-5d33e1aa43444850084b4794b7d870e67dbb474e.tar.gz
tanzanite-5d33e1aa43444850084b4794b7d870e67dbb474e.tar.bz2
tanzanite-5d33e1aa43444850084b4794b7d870e67dbb474e.zip
bunch of shit
Diffstat (limited to 'src/listeners/message')
-rw-r--r--src/listeners/message/automodCreate.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/listeners/message/automodCreate.ts b/src/listeners/message/automodCreate.ts
index 3f1780f..cfe3970 100644
--- a/src/listeners/message/automodCreate.ts
+++ b/src/listeners/message/automodCreate.ts
@@ -1,8 +1,11 @@
import { BushListener, BushMessage } from '@lib';
+// @ts-expect-error: ts doesn't recognize json5
+import _badLinks from '@root/lib/badlinks'; // Stolen from https://github.com/nacrt/SkyblockClient-REPO/blob/main/files/scamlinks.json
+// @ts-expect-error: ts doesn't recognize json5
+import _badLinksSecret from '@root/lib/badlinks-secret'; // shhhh
+// @ts-expect-error: ts doesn't recognize json5
+import badWords from '@root/lib/badwords';
import { MessageEmbed, TextChannel } from 'discord.js';
-import _badLinksSecret from '../../lib/badlinks-secret.json'; // shhhh
-import _badLinks from '../../lib/badlinks.json'; // Stolen from https://github.com/nacrt/SkyblockClient-REPO/blob/main/files/scamlinks.json
-import badWords from '../../lib/badwords.json';
import { BushClientEvents } from '../../lib/extensions/discord.js/BushClientEvents';
export default class AutomodMessageCreateListener extends BushListener {
@@ -26,7 +29,7 @@ export default class AutomodMessageCreateListener extends BushListener {
let temp = _badLinks;
if (_badLinksSecret) temp = temp.concat(_badLinksSecret);
- temp.forEach((link) => {
+ temp.forEach((link: string) => {
badLinks[link] = 3;
});