diff --git a/OlivaDiceJoy/app.json b/OlivaDiceJoy/app.json index f37cb93..94df0ea 100644 --- a/OlivaDiceJoy/app.json +++ b/OlivaDiceJoy/app.json @@ -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" : [ diff --git a/OlivaDiceJoy/data.py b/OlivaDiceJoy/data.py index bb633d3..787b763 100644 --- a/OlivaDiceJoy/data.py +++ b/OlivaDiceJoy/data.py @@ -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 = [] diff --git a/OlivaDiceJoy/msgReply.py b/OlivaDiceJoy/msgReply.py index d631f6b..0b4b7ea 100644 --- a/OlivaDiceJoy/msgReply.py +++ b/OlivaDiceJoy/msgReply.py @@ -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: