mirror of
https://github.com/Rongronggg9/SlashBot.git
synced 2025-02-06 17:23:28 +08:00
feat: loosen random sticker regex
This commit is contained in:
parent
7b512762fc
commit
d9e2289b49
@ -40,9 +40,7 @@ pinParser = re.compile(
|
||||
r'^[\\/]_?pin$'
|
||||
)
|
||||
randomStickerParser = re.compile(
|
||||
r'^([\\/])'
|
||||
r'(_?)'
|
||||
r'(\1\2?)+$'
|
||||
r'^([\\/]_?){2,}$'
|
||||
)
|
||||
|
||||
convertEscapes = partial(re.compile(r'\\(\s)').sub, r'\1')
|
||||
|
Loading…
Reference in New Issue
Block a user