mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-16 02:55:03 +00:00
fix: automod types
This commit is contained in:
parent
5a5be89573
commit
e4b098b563
3 changed files with 9 additions and 9 deletions
|
@ -21,18 +21,18 @@ const regexCache = new WeakMap<any, RegExp[]>();
|
|||
const quickLinkCheck = /^https?:\/\//i;
|
||||
|
||||
const configSchema = z.strictObject({
|
||||
include_domains: z.array(z.string().max(255)).max(255).optional(),
|
||||
exclude_domains: z.array(z.string().max(255)).max(255).optional(),
|
||||
include_domains: z.array(z.string().max(255)).max(700).optional(),
|
||||
exclude_domains: z.array(z.string().max(255)).max(700).optional(),
|
||||
include_subdomains: z.boolean().default(true),
|
||||
include_words: z.array(z.string().max(2000)).max(512).optional(),
|
||||
exclude_words: z.array(z.string().max(2000)).max(512).optional(),
|
||||
include_words: z.array(z.string().max(2000)).max(700).optional(),
|
||||
exclude_words: z.array(z.string().max(2000)).max(700).optional(),
|
||||
include_regex: z.array(zRegex(z.string().max(2000))).max(512).optional(),
|
||||
exclude_regex: z.array(zRegex(z.string().max(2000))).max(512).optional(),
|
||||
phisherman: z.strictObject({
|
||||
include_suspected: z.boolean().optional(),
|
||||
include_verified: z.boolean().optional(),
|
||||
}).optional(),
|
||||
only_real_links: z.boolean(),
|
||||
only_real_links: z.boolean().default(true),
|
||||
match_messages: z.boolean().default(true),
|
||||
match_embeds: z.boolean().default(true),
|
||||
match_visible_names: z.boolean().default(false),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue