fix: 修复 gocq 环境下 at 机器人报错的问题

This commit is contained in:
Soulter
2024-01-03 16:32:08 +08:00
committed by GitHub
parent 66294100ec
commit 89c8b3e7fc
+1 -1
View File
@@ -125,7 +125,7 @@ class QQGOCQ(Platform):
resp = True
elif isinstance(i, Plain):
for nick in self.nick_qq:
if nick != '' and message.message[0].text.strip().startswith(nick):
if nick != '' and i.text.strip().startswith(nick):
resp = True
break