diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-09 15:15:30 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-09 15:15:30 -0500 |
commit | 34073ca297847524bbaac854e2126d51225fbaaf (patch) | |
tree | dfa8f3011ec7b114d02fe1d7277882c972ee3d2d /src/commands/dev/test.ts | |
parent | 73ebab839201aaef9d76bfb19fa22c99a76a6b79 (diff) | |
download | tanzanite-34073ca297847524bbaac854e2126d51225fbaaf.tar.gz tanzanite-34073ca297847524bbaac854e2126d51225fbaaf.tar.bz2 tanzanite-34073ca297847524bbaac854e2126d51225fbaaf.zip |
fix automod
Diffstat (limited to 'src/commands/dev/test.ts')
-rw-r--r-- | src/commands/dev/test.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/commands/dev/test.ts b/src/commands/dev/test.ts index 50532f8..1ec7f71 100644 --- a/src/commands/dev/test.ts +++ b/src/commands/dev/test.ts @@ -3,6 +3,7 @@ import { MessageActionRow, MessageButton, MessageEmbed, type ApplicationCommand, import { MessageButtonStyles } from 'discord.js/typings/enums'; import badLinksSecretArray from '../../lib/badlinks-secret.js'; import badLinksArray from '../../lib/badlinks.js'; +import badWords from '../../lib/badwords.js'; export default class TestCommand extends BushCommand { public constructor() { @@ -150,12 +151,13 @@ export default class TestCommand extends BushCommand { return await message.util.reply(`${util.emojis.success} Removed guild commands and global commands.`); } else if (['drop down', 'drop downs', 'select menu', 'select menus'].includes(args?.feature?.toLowerCase())) { - } else if (['sync links'].includes(args?.feature?.toLowerCase())) { + } else if (['sync automod'].includes(args?.feature?.toLowerCase())) { const row = (await Shared.findByPk(0))!; row.badLinks = badLinksArray; row.badLinksSecret = badLinksSecretArray; + row.badWords = badWords; await row.save(); - return await message.util.reply(`${util.emojis.success} Updated bad links.`); + return await message.util.reply(`${util.emojis.success} Synced automod.`); } return await message.util.reply(responses[Math.floor(Math.random() * responses.length)]); } |