Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ChanceCustom/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"namespace" : "ChanceCustom",
"info" : "以自定义回复为核心,附带群管、监控、词库、语音、图片、调用接口、对接网站、黑白名单、定时任务、网页爬虫、简单编程、入群验证、发言限制、简易QQ、Web服务器、制作接口等功能。交流群661366095",
"priority" : 40000,
"version" : "0.2.21",
"svn" : 36,
"version" : "0.2.24",
"svn" : 39,
"compatible_svn" : 190,
"message_mode" : "old_string",
"support" : [
Expand Down
4 changes: 2 additions & 2 deletions ChanceCustom/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

import platform

version = '0.2.21'
svn = 36
version = '0.2.24'
svn = 39

version_full = '%s(%d)' % (version, svn)

Expand Down
10 changes: 9 additions & 1 deletion ChanceCustom/replyCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,15 @@ def reply_runtime(plugin_event: OlivOS.API.Event, Proc: OlivOS.pluginAPI.shallow
reply(plugin_event, msg)
break
elif 'reg' == tmp_dictCustomData_this[key_this]['matchType']:
res_re = re.match('^%s$' % tmp_dictCustomData_this[key_this]['key'], tmp_message)
try:
res_re = re.match('^%s$' % tmp_dictCustomData_this[key_this]['key'], tmp_message)
except (re.error, RecursionError, OverflowError) as e:
Proc.log(
1,
'ChanceCustom 规则[%s]的正则表达式无效,已跳过: %s'
% (tmp_dictCustomData_this[key_this]['key'], e)
)
continue
if res_re is not None:
res_re_list = res_re.groups()
count = 1
Expand Down
Loading