mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +08:00
🐛 修复帮助命令日志过长的问题
This commit is contained in:
parent
c577aa1318
commit
5f9748582d
@ -42,9 +42,9 @@ async def _(bot: Bot, event: MessageEvent, arg: Message = CommandArg()):
|
||||
if str(event.user_id) in bot.config.superusers:
|
||||
is_super = True
|
||||
msg = msg.replace("-super", "").strip()
|
||||
msg = get_plugin_help(msg, is_super)
|
||||
if msg:
|
||||
await simple_help.send(image(b64=msg))
|
||||
img_msg = get_plugin_help(msg, is_super)
|
||||
if img_msg:
|
||||
await simple_help.send(image(b64=img_msg))
|
||||
else:
|
||||
await simple_help.send("没有此功能的帮助信息...")
|
||||
logger.info(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user