修复自定义群欢迎消息无法使用

This commit is contained in:
HibiKier
2022-12-15 22:43:58 +08:00
parent 272f6726ea
commit 9b477e2eb8
3 changed files with 6 additions and 2 deletions
@@ -37,7 +37,7 @@ custom_welcome = on_command(
@custom_welcome.handle()
async def _(event: GroupMessageEvent, arg: Message = CommandArg(), img: List[str] = ImageList):
async def _(event: GroupMessageEvent, arg: Message = CommandArg(), img: List[str] = ImageList()):
msg = arg.extract_plain_text().strip()
if not msg and not img:
await custom_welcome.finish(__plugin_usage__)
+1 -1
View File
@@ -70,7 +70,7 @@ async def _(
event: GroupMessageEvent,
cmd: Tuple[str, ...] = Command(),
arg: Message = CommandArg(),
qq: List[str] = AtList()
qq: List[int] = AtList()
):
cmd = cmd[0]
result = ""