New option for the moderation bot:
* forbid messages with too many special characters (#517). * update moderation bot to v0.4.0. * refactoring localization segments to reuse existing one in multiple context. * npm run doc:translate
This commit is contained in:
@ -96,6 +96,7 @@ interface ChannelConfigurationOptions {
|
||||
forbiddenWords: ChannelForbiddenWords[]
|
||||
quotes: ChannelQuotes[]
|
||||
commands: ChannelCommands[]
|
||||
forbidSpecialChars: ChannelForbidSpecialChars
|
||||
// TODO: bannedJIDs: string[]
|
||||
}
|
||||
slowMode: {
|
||||
@ -132,6 +133,13 @@ interface ChannelCommands {
|
||||
message: string
|
||||
}
|
||||
|
||||
interface ChannelForbidSpecialChars {
|
||||
enabled: boolean
|
||||
tolerance: number
|
||||
reason: string
|
||||
applyToModerators: boolean
|
||||
}
|
||||
|
||||
interface ChannelConfiguration {
|
||||
channel: ChannelInfos
|
||||
configuration: ChannelConfigurationOptions
|
||||
|
Reference in New Issue
Block a user