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