mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
添加了一个新的搜索命令,允许用户根据插件名称或作者搜索插件。此外,更新了插件配置的URL列表,以使用新的API端点。还修复了requirements.txt处理中的日志记录问题,并对插件安装和删除流程进行了微调。
16 lines
390 B
Python
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]
|