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
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:
|
if str(event.user_id) in bot.config.superusers:
|
||||||
is_super = True
|
is_super = True
|
||||||
msg = msg.replace("-super", "").strip()
|
msg = msg.replace("-super", "").strip()
|
||||||
msg = get_plugin_help(msg, is_super)
|
img_msg = get_plugin_help(msg, is_super)
|
||||||
if msg:
|
if img_msg:
|
||||||
await simple_help.send(image(b64=msg))
|
await simple_help.send(image(b64=img_msg))
|
||||||
else:
|
else:
|
||||||
await simple_help.send("没有此功能的帮助信息...")
|
await simple_help.send("没有此功能的帮助信息...")
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user