Skip to content

KBVsent/Git-Manage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git-Manage

基于 HoshinoBotv2 的用于更新通过Git管理的插件

使用前置

pip install -r requirements.txt

环境需求

python 3.8+

使用说明

在 hoshino/config/__bot__.py 中添加本项目文件名
在群里或私信向 bot 发送 [开启 Git-Manage] 启用插件

开启 Git-Manage         :启用插件
#更新全部仓库            :更新全部通过Git管理的仓库
#克隆版仓库 [仓库链接]    :克隆指定仓库到Hoshino插件目录下,需保证链接最后路径为插件名

注意

建议运行时使用以下脚本

#!/bin/bash
# 循环运行并记录日志
while true
do
    python run.py >> run.log 2>&1
    echo "Restarting automatically in 3 seconds (press Ctrl + C to cancel)" >> run.log
    sleep 3
done

创建在Hoshino根目录后赋予可执行权限chmod +x run_loop.sh

致谢

Nickname Contribution
HoshinoReboot 提供的重启相关功能

About

基于 HoshinoBotv2 的用于更新通过Git管理的插件的插件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages