Skip to content

Commit

Permalink
3.0.3(4)
Browse files Browse the repository at this point in the history
+ 魔都模组模块可以选mdmz指令
  • Loading branch information
lunzhiPenxil committed Aug 20, 2022
1 parent 0b0971e commit 1d10372
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions OlivaDiceOdyssey/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"namespace" : "OlivaDiceOdyssey",
"message_mode" : "old_string",
"info" : "本模块为OlivaDice的高阶模块,提供了一些涉及第三方合作的功能,它们或许是调用了第三方数据库,要么是涉及版权授权,又或者是单纯的过于依赖网络,总之这些功能由于第三方的参与很可能无法由插件开发者保证可靠性,但仍然很强大。例如魔都模组功能。",
"version" : "3.0.2",
"svn" : 3,
"version" : "3.0.3",
"svn" : 4,
"compatible_svn" : 101,
"priority" : 20040,
"support" : [
Expand Down
4 changes: 2 additions & 2 deletions OlivaDiceOdyssey/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
'''


OlivaDiceOdyssey_ver = '3.0.2'
OlivaDiceOdyssey_svn = 3
OlivaDiceOdyssey_ver = '3.0.3'
OlivaDiceOdyssey_svn = 4
OlivaDiceOdyssey_ver_short = '%s(%s)' % (str(OlivaDiceOdyssey_ver), str(OlivaDiceOdyssey_svn))
13 changes: 9 additions & 4 deletions OlivaDiceOdyssey/msgReply.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,15 @@ def unity_reply(plugin_event, Proc):
#此群关闭时中断处理
if not flag_groupEnable and not flag_force_reply:
return
if isMatchWordStart(tmp_reast_str, 'cnmods'):
tmp_reast_str = getMatchWordStartRight(tmp_reast_str, 'cnmods')
tmp_reast_str = skipSpaceStart(tmp_reast_str)
tmp_reast_str = tmp_reast_str.rstrip(' ')
if isMatchWordStart(tmp_reast_str, 'cnmods') or isMatchWordStart(tmp_reast_str, 'mdmz'):
if isMatchWordStart(tmp_reast_str, 'cnmods'):
tmp_reast_str = getMatchWordStartRight(tmp_reast_str, 'cnmods')
tmp_reast_str = skipSpaceStart(tmp_reast_str)
tmp_reast_str = tmp_reast_str.rstrip(' ')
elif isMatchWordStart(tmp_reast_str, 'mdmz'):
tmp_reast_str = getMatchWordStartRight(tmp_reast_str, 'mdmz')
tmp_reast_str = skipSpaceStart(tmp_reast_str)
tmp_reast_str = tmp_reast_str.rstrip(' ')
if isMatchWordStart(tmp_reast_str, 'search'):
tmp_reast_str = getMatchWordStartRight(tmp_reast_str, 'search')
tmp_reast_str = skipSpaceStart(tmp_reast_str)
Expand Down

0 comments on commit 1d10372

Please sign in to comment.