From e965c0804301b281bc18a27615f30674d90b7e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=91=E8=B4=A8?= Date: Fri, 17 Mar 2023 17:43:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=8E=A8=E8=BF=9B=E8=87=B33.?= =?UTF-8?q?0.12=EF=BC=8C=E4=BC=98=E5=8C=96=E6=88=B3=E4=B8=80=E6=88=B3?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E4=B8=AD=E7=9A=84=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OlivaDiceJoy/app.json | 4 ++-- OlivaDiceJoy/data.py | 4 ++-- OlivaDiceJoy/msgReply.py | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/OlivaDiceJoy/app.json b/OlivaDiceJoy/app.json index 91990b0..b333bdd 100644 --- a/OlivaDiceJoy/app.json +++ b/OlivaDiceJoy/app.json @@ -4,8 +4,8 @@ "namespace" : "OlivaDiceJoy", "message_mode" : "old_string", "info" : "本模块为OlivaDice的娱乐模块,提供了一些无关紧要的娱乐功能,它们或许是与跑团关系不大、或许只是一些历史原因遗留下来的传统,总之,这些在野蛮生长时期被或是由于开发者无知、或是作为恶性竞争手段、或是用户呼声较大但对于跑团而言意义不明的,被添加进来的小功能,都会被放入这个模块。", - "version" : "3.0.11", - "svn" : 19, + "version" : "3.0.12", + "svn" : 20, "compatible_svn" : 101, "priority" : 20010, "support" : [ diff --git a/OlivaDiceJoy/data.py b/OlivaDiceJoy/data.py index f5e97cb..a0d1776 100644 --- a/OlivaDiceJoy/data.py +++ b/OlivaDiceJoy/data.py @@ -15,8 +15,8 @@ ''' -OlivaDiceJoy_ver = '3.0.11' -OlivaDiceJoy_svn = 19 +OlivaDiceJoy_ver = '3.0.12' +OlivaDiceJoy_svn = 20 OlivaDiceJoy_ver_short = '%s(%s)' % (str(OlivaDiceJoy_ver), str(OlivaDiceJoy_svn)) listPlugin = [] diff --git a/OlivaDiceJoy/msgReply.py b/OlivaDiceJoy/msgReply.py index 90ddc0a..c1ac015 100644 --- a/OlivaDiceJoy/msgReply.py +++ b/OlivaDiceJoy/msgReply.py @@ -93,7 +93,9 @@ def poke_jrrp(plugin_event, type): return tmp_reply_str def poke_rd(plugin_event, event_type): - tmp_group_id = plugin_event.data.group_id + tmp_group_id = None + if 'group_id' in plugin_event.data.__dict__: + tmp_group_id = plugin_event.data.group_id tmp_user_platform = plugin_event.platform['platform'] tmp_hagID = None if event_type == 'group':