From f4222e0923406d727918ea5ba227fca1ff851808 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Tue, 21 Nov 2023 22:37:35 +0800 Subject: [PATCH] bugfixes --- model/command/adapter/protocol_adapter.py | 1 + model/platform/qqchan.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/model/command/adapter/protocol_adapter.py b/model/command/adapter/protocol_adapter.py index 1f0f6030a..3e182d4d7 100644 --- a/model/command/adapter/protocol_adapter.py +++ b/model/command/adapter/protocol_adapter.py @@ -11,6 +11,7 @@ from .onebot.message_event import MessageEvent from .onebot.message_segment import MessageSegment from .nonebot.command_arg import CommandArg from .onebot.bot import Bot +from .nonebot.common import require from nakuru import ( GuildMessage, diff --git a/model/platform/qqchan.py b/model/platform/qqchan.py index ad3974f82..a9e46ad8a 100644 --- a/model/platform/qqchan.py +++ b/model/platform/qqchan.py @@ -76,7 +76,7 @@ class QQChan(): ngm.sub_type = "normal" ngm.message_id = message.id - ngm.guild_id = int(message.channel_id) + ngm.guild_id = int(message.guild_id) ngm.channel_id = int(message.channel_id) ngm.user_id = int(message.author.id) msg = []