mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
修复自定义群欢迎消息无法使用
This commit is contained in:
parent
272f6726ea
commit
9b477e2eb8
@ -296,6 +296,10 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能
|
|||||||
|
|
||||||
## 更新
|
## 更新
|
||||||
|
|
||||||
|
### 2022/12/15
|
||||||
|
|
||||||
|
* 修复自定义群欢迎消息无法使用
|
||||||
|
|
||||||
### 2022/12/13
|
### 2022/12/13
|
||||||
|
|
||||||
* 修复.unban
|
* 修复.unban
|
||||||
|
|||||||
@ -37,7 +37,7 @@ custom_welcome = on_command(
|
|||||||
|
|
||||||
|
|
||||||
@custom_welcome.handle()
|
@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()
|
msg = arg.extract_plain_text().strip()
|
||||||
if not msg and not img:
|
if not msg and not img:
|
||||||
await custom_welcome.finish(__plugin_usage__)
|
await custom_welcome.finish(__plugin_usage__)
|
||||||
|
|||||||
@ -70,7 +70,7 @@ async def _(
|
|||||||
event: GroupMessageEvent,
|
event: GroupMessageEvent,
|
||||||
cmd: Tuple[str, ...] = Command(),
|
cmd: Tuple[str, ...] = Command(),
|
||||||
arg: Message = CommandArg(),
|
arg: Message = CommandArg(),
|
||||||
qq: List[str] = AtList()
|
qq: List[int] = AtList()
|
||||||
):
|
):
|
||||||
cmd = cmd[0]
|
cmd = cmd[0]
|
||||||
result = ""
|
result = ""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user