From 3e7ee46a85dc076f58c63bd7befb230627d13b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=83=E7=90=86?= Date: Sat, 3 Aug 2024 15:51:13 +0800 Subject: [PATCH] =?UTF-8?q?0.11.43=EF=BC=8C=E4=BF=AE=E6=AD=A3QQ=E9=A2=91?= =?UTF-8?q?=E9=81=93=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OlivOS/adapter/qqGuild/qqGuildv2SDK.py | 6 +++--- OlivOS/core/info/infoAPI.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/OlivOS/adapter/qqGuild/qqGuildv2SDK.py b/OlivOS/adapter/qqGuild/qqGuildv2SDK.py index b944deae..1c5dce34 100644 --- a/OlivOS/adapter/qqGuild/qqGuildv2SDK.py +++ b/OlivOS/adapter/qqGuild/qqGuildv2SDK.py @@ -178,13 +178,13 @@ def __init__(self, data): class sendIdentify(payload_template): def __init__(self, bot_info:bot_info_T, intents=(int(intents_T.GUILDS) | int(intents_T.DIRECT_MESSAGE))): tmp_intents = intents - if bot_info.model == 'private': + if bot_info.model in ['private']: tmp_intents |= int(intents_T.GUILD_MESSAGES) #tmp_intents |= int(intents_T.QQ_MESSAGES) - elif bot_info.model == ['public', 'sandbox']: + elif bot_info.model in ['public', 'sandbox']: tmp_intents |= int(intents_T.PUBLIC_GUILD_MESSAGES) tmp_intents |= int(intents_T.PUBLIC_QQ_MESSAGES) - elif bot_info.model == 'public_guild_only': + elif bot_info.model in ['public_guild_only']: tmp_intents |= int(intents_T.PUBLIC_GUILD_MESSAGES) elif bot_info.model in ['private_intents', 'public_intents', 'sandbox_intents']: tmp_intents = bot_info.intents diff --git a/OlivOS/core/info/infoAPI.py b/OlivOS/core/info/infoAPI.py index c72871d1..46785d22 100644 --- a/OlivOS/core/info/infoAPI.py +++ b/OlivOS/core/info/infoAPI.py @@ -17,9 +17,9 @@ import OlivOS -OlivOS_Version = '0.11.42' -OlivOS_SVN = 162 -OlivOS_Version_Slogan = '大暑' +OlivOS_Version = '0.11.43' +OlivOS_SVN = 163 +OlivOS_Version_Slogan = '大暑条' # Compatible <= Plugin[compatible_svn] : Compatible # OldCompatible <= Plugin[compatible_svn] < Compatible : OldCompatible Warn