Skip to content

Commit

Permalink
0.11.43,修正QQ频道条件判断
Browse files Browse the repository at this point in the history
  • Loading branch information
MetaLe0 committed Aug 3, 2024
1 parent edfb6e9 commit 3e7ee46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions OlivOS/adapter/qqGuild/qqGuildv2SDK.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions OlivOS/core/info/infoAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e7ee46

Please sign in to comment.