Skip to content

Commit

Permalink
版本推进至3.0.8
Browse files Browse the repository at this point in the history
+ 优化换行转义问题 closed #8
  • Loading branch information
lunzhiPenxil committed Aug 30, 2022
1 parent 68a3400 commit 066697f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions OlivaDiceJoy/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"namespace" : "OlivaDiceJoy",
"message_mode" : "old_string",
"info" : "本模块为OlivaDice的娱乐模块,提供了一些无关紧要的娱乐功能,它们或许是与跑团关系不大、或许只是一些历史原因遗留下来的传统,总之,这些在野蛮生长时期被或是由于开发者无知、或是作为恶性竞争手段、或是用户呼声较大但对于跑团而言意义不明的,被添加进来的小功能,都会被放入这个模块。",
"version" : "3.0.7",
"svn" : 15,
"version" : "3.0.8",
"svn" : 16,
"compatible_svn" : 101,
"priority" : 20010,
"support" : [
Expand Down
4 changes: 2 additions & 2 deletions OlivaDiceJoy/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
'''


OlivaDiceJoy_ver = '3.0.7'
OlivaDiceJoy_svn = 15
OlivaDiceJoy_ver = '3.0.8'
OlivaDiceJoy_svn = 16
OlivaDiceJoy_ver_short = '%s(%s)' % (str(OlivaDiceJoy_ver), str(OlivaDiceJoy_svn))

listPlugin = []
Expand Down
5 changes: 4 additions & 1 deletion OlivaDiceJoy/msgReply.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,11 @@ def chance_custom_msg(plugin_event:OlivOS.API.Event, data:str, valDict:dict):
chance_valDict['innerVal']['bot_hash'] = plugin_event.bot_info.hash
chance_valDict['innerVal']['bot_hash_self'] = plugin_event.bot_info.hash
try:
msg_1 = data
msg_1 = msg_1.replace('\r\n', '\n')
msg_1 = msg_1.replace('\n', '【换行】')
msg = ChanceCustom.replyReg.replyValueRegTotal(
data,
msg_1,
chance_valDict
)
except:
Expand Down

0 comments on commit 066697f

Please sign in to comment.