mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-25 08:26:06 +08:00
支持自定义BOT仓库 (#1051)
This commit is contained in:
parent
ddee69d291
commit
8c4db8dd40
|
@ -35,6 +35,9 @@ EnableExtraShell="true"
|
|||
## 是否自动启动bot,默认不启动,设置为true时自动启动,目前需要自行克隆bot仓库所需代码,存到ql/repo目录下,文件夹命名为dockerbot
|
||||
AutoStartBot=""
|
||||
|
||||
## 是否使用第三方bot,默认不使用,使用时填入仓库地址,存到ql/repo目录下,文件夹命名为diybot
|
||||
BotRepoUrl=""
|
||||
|
||||
## 安装bot依赖时指定pip源,默认使用清华源,如不需要源,设置此参数为空
|
||||
PipMirror="https://pypi.tuna.tsinghua.edu.cn/simple"
|
||||
|
||||
|
@ -52,7 +55,7 @@ export BARK_SOUND=""
|
|||
## 下方填写推送消息分组,默认为"QingLong"
|
||||
export BARK_GROUP="QingLong"
|
||||
|
||||
## 3. Telegram
|
||||
## 3. Telegram
|
||||
## 下方填写自己申请@BotFather的Token,如10xxx4:AAFcqxxxxgER5uw
|
||||
export TG_BOT_TOKEN=""
|
||||
## 下方填写 @getuseridbot 中获取到的纯数字ID
|
||||
|
@ -73,7 +76,7 @@ export TG_PROXY_AUTH=""
|
|||
## 如需使用,请赋值代理地址链接,并自行解除下一行的注释
|
||||
export TG_API_HOST=""
|
||||
|
||||
## 4. 钉钉
|
||||
## 4. 钉钉
|
||||
## 官方文档:https://developers.dingtalk.com/document/app/custom-robot-access
|
||||
## 下方填写token后面的内容,只需 https://oapi.dingtalk.com/robot/send?access_token=XXX 等于=符号后面的XXX即可
|
||||
export DD_BOT_TOKEN=""
|
||||
|
@ -104,9 +107,9 @@ export PUSH_PLUS_TOKEN=""
|
|||
export PUSH_PLUS_USER=""
|
||||
|
||||
## 9. go-cqhttp
|
||||
## gobot_url 推送到个人QQ: http://127.0.0.1/send_private_msg 群:http://127.0.0.1/send_group_msg
|
||||
## gobot_url 推送到个人QQ: http://127.0.0.1/send_private_msg 群:http://127.0.0.1/send_group_msg
|
||||
## gobot_token 填写在go-cqhttp文件设置的访问密钥
|
||||
## gobot_qq 如果GOBOT_URL设置 /send_private_msg 则需要填入 user_id=个人QQ 相反如果是 /send_group_msg 则需要填入 group_id=QQ群
|
||||
## gobot_qq 如果GOBOT_URL设置 /send_private_msg 则需要填入 user_id=个人QQ 相反如果是 /send_group_msg 则需要填入 group_id=QQ群
|
||||
## go-cqhttp相关API https://docs.go-cqhttp.org/api
|
||||
export GOBOT_URL=""
|
||||
export GOBOT_TOKEN=""
|
||||
|
|
10
shell/bot.sh
10
shell/bot.sh
|
@ -3,8 +3,14 @@
|
|||
## 导入通用变量与函数
|
||||
dir_shell=/ql/shell
|
||||
. $dir_shell/share.sh
|
||||
url="${github_proxy_url}https://github.com/SuMaiKaDe/bot.git"
|
||||
repo_path="${dir_repo}/dockerbot"
|
||||
|
||||
if [[ -z ${BotRepoUrl} ]]; then
|
||||
url="${github_proxy_url}https://github.com/SuMaiKaDe/bot.git"
|
||||
repo_path="${dir_repo}/dockerbot"
|
||||
else
|
||||
url=${BotRepoUrl}
|
||||
repo_path="${dir_repo}/diybot"
|
||||
fi
|
||||
|
||||
echo -e "\n1、安装bot依赖...\n"
|
||||
apk --no-cache add -f zlib-dev gcc jpeg-dev python3-dev musl-dev freetype-dev
|
||||
|
|
Loading…
Reference in New Issue
Block a user