resolve SengokuCola/MaiMBot#167 根据正则表达式过滤消息

This commit is contained in:
ChangingSelf
2025-03-10 22:52:14 +08:00
parent ef561b5cf0
commit 1b611ecce5
3 changed files with 20 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
[inner]
version = "0.0.4"
version = "0.0.5"
#如果你想要修改配置文件请在修改后将version的值进行变更
#如果新增项目请在BotConfig类下新增相应的变量
@@ -40,6 +40,12 @@ ban_words = [
# "403","张三"
]
ban_words_regex = [
# 需要过滤的消息匹配的正则表达式,匹配到的消息将被过滤,若不了解正则表达式请勿修改
#"https?://[^\\s]+", # 匹配https链接
#"\\d{4}-\\d{2}-\\d{2}", # 匹配日期
]
[emoji]
check_interval = 120 # 检查表情包的时间间隔
register_interval = 10 # 注册表情包的时间间隔