mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 02:35:27 +00:00
Merge branch 'master' of https://github.com/janderedev/automod
This commit is contained in:
commit
c901c2ba6a
|
@ -162,7 +162,7 @@ export default {
|
|||
break;
|
||||
}
|
||||
case 'add': {
|
||||
let strictness: any = 'SOFT';
|
||||
let strictness: any = 'HARD';
|
||||
if (['soft', 'hard', 'strict'].includes(args[0].toLowerCase())) {
|
||||
strictness = args.shift()!.toUpperCase() as any;
|
||||
}
|
||||
|
@ -313,12 +313,13 @@ export default {
|
|||
`### This command allows you to configure a manual word filter.\n` +
|
||||
`- **${DEFAULT_PREFIX}botctl filter enable** - Enable the word filter.\n` +
|
||||
`- **${DEFAULT_PREFIX}botctl filter disable** - Disable the word filter.\n` +
|
||||
`- **${DEFAULT_PREFIX}botctl filter add [soft|hard] [word]** - Add a word to the list. If omitted, defaults to 'soft'.\n` +
|
||||
`- **${DEFAULT_PREFIX}botctl filter add [soft|hard|strict] [word]** - Add a word to the list. If omitted, defaults to 'hard'.\n` +
|
||||
`- **${DEFAULT_PREFIX}botctl filter remove** - Remove a word from the list.\n` +
|
||||
`- **${DEFAULT_PREFIX}botctl filter show** - Send the current filter list.\n` +
|
||||
`- **${DEFAULT_PREFIX}botctl filter message [message]** - Set the message sent when a message is matched.\n` +
|
||||
`- **${DEFAULT_PREFIX}botctl filter action [log|delete|warn]** - Configure the action taken on filtered messages.\n` +
|
||||
`- **${DEFAULT_PREFIX}botctl filter test [phrase]** - Test whether a phrase matches your word list.\n`,
|
||||
`- **${DEFAULT_PREFIX}botctl filter test [phrase]** - Test whether a phrase matches your word list.\n` +
|
||||
`More documentation can be found [here](https://github.com/janderedev/automod/wiki/Word-Filter).`,
|
||||
'Word filter',
|
||||
),
|
||||
embed(
|
||||
|
|
Loading…
Reference in a new issue