feat(plugin_store): 添加搜索插件功能及更新配置URL

添加了一个新的搜索命令,允许用户根据插件名称或作者搜索插件。此外,更新了插件配置的URL列表,以使用新的API端点。还修复了requirements.txt处理中的日志记录问题,并对插件安装和删除流程进行了微调。
This commit is contained in:
molanp
2024-08-24 14:49:55 +08:00
parent 28b7415581
commit e0f323fdeb
3 changed files with 110 additions and 37 deletions
@@ -4,12 +4,12 @@ BASE_PATH = Path() / "zhenxun"
BASE_PATH.mkdir(parents=True, exist_ok=True)
CONFIG_URL = (
"https://cdn.jsdelivr.net/gh/HibiKier/zhenxun_bot_plugins/plugins.json"
)
CONFIG_URL_LIST = [
("https://cdn.jsdelivr.net/gh/HibiKier/zhenxun_bot_plugins/plugins.json",
"https://api.github.com/repos/HibiKier/zhenxun_bot_plugins/contents/{}?ref=main")
]
"""插件信息文件"""
DOWNLOAD_URL = (
"https://api.github.com/repos/HibiKier/zhenxun_bot_plugins/contents/{}?ref=main"
)
"""插件下载地址"""
CONFIG_URL = CONFIG_URL_LIST[0][0]
DOWNLOAD_URL = CONFIG_URL_LIST[0][1]