zhenxun_bot/zhenxun/builtin_plugins/plugin_store/config.py
molanp e0f323fdeb feat(plugin_store): 添加搜索插件功能及更新配置URL
添加了一个新的搜索命令,允许用户根据插件名称或作者搜索插件。此外,更新了插件配置的URL列表,以使用新的API端点。还修复了requirements.txt处理中的日志记录问题,并对插件安装和删除流程进行了微调。
2024-08-24 14:49:55 +08:00

16 lines
390 B
Python

from pathlib import Path
BASE_PATH = Path() / "zhenxun"
BASE_PATH.mkdir(parents=True, exist_ok=True)
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")
]
"""插件信息文件"""
CONFIG_URL = CONFIG_URL_LIST[0][0]
DOWNLOAD_URL = CONFIG_URL_LIST[0][1]