🐛 修复 AlconnaMatcher 对 Alconna 的引用变成弱引用导致的问题

This commit is contained in:
2024-06-25 09:24:39 +08:00
parent abe5e30ede
commit 967a028235
4 changed files with 16 additions and 14 deletions

View File

@@ -3,7 +3,7 @@ from nonebot_plugin_alconna import At
from ...utils.exception import MessageFormatError
from ...utils.typing import Me
from .. import add_block_handlers, alc
from .. import add_block_handlers, alc, command
from .api import Player
from .constant import USER_NAME
@@ -14,7 +14,7 @@ def get_player(name: str) -> Player | MessageFormatError:
return MessageFormatError('用户名/ID不合法')
alc.command.add(
command.add(
Subcommand(
'TOP',
Subcommand(