feat: 添加了对自定义命令前缀的支持

This commit is contained in:
2024-03-31 09:03:28 +08:00
parent 2ad2bb4182
commit 724e13180c
3 changed files with 8 additions and 3 deletions

View File

@ -146,7 +146,7 @@ class Markdown:
markdown格式的可点击回调按钮
"""
if "" not in config.get("command_start", ["/"]):
if "" not in config.get("command_start", ["/"]) and config.get("alconna_use_command_start", False):
cmd = f"{config['command_start'][0]}{cmd}"
return f"[{name}](mqqapi://aio/inlinecmd?command={quote(cmd)}&reply={str(reply).lower()}&enter={str(enter).lower()})"