1.下载diybot补丁
2.进入青龙容器
docker exec -it qinglong bash
执行
rm -r ql/repo/dockerbot/jbot
3.把下载的diybot补丁上传到容器dockerbot里面
4.执行脚本
if [ -d "/jd" ]; then root=/jd; else root=/ql; fi
wget https://mildnes.wcawer.workers.dev/https://raw.githubusercontent.com/chiupam/JD_Diy/main/shell/bot.sh -O $root/bot.sh
bash $root/bot.sh
5.查看文件
cd /ql/repo/
ls -l
root@e8580e469d11:/ql $cd /ql/repo
root@e8580e469d11:/ql/repo $ls -l
total 28
drwxr-xr-x 13 root root 4096 Mar 23 19:58 KingRan_KR
drwxr-xr-x 4 root root 4096 Mar 23 19:06 Redcker_scripts_qinglong
drwxr-xr-x 3 root root 4096 Mar 23 20:00 backup
drwxr-xr-x 6 root root 4096 Mar 23 19:58 ccwav_QLScript2
drwxr-xr-x 10 root root 4096 Mar 23 20:00 diybot
drwxr-xr-x 4 root root 4096 Mar 23 20:02 dockerbot
drwxr-xr-x 3 root root 4096 Mar 23 19:58 smiek2121_scripts
有diybot跟backup文件就代表安装成功
6.配置好config文件夹里面的bot.json
7.在容器内运行命令
ql bot
8.对机器人发送命令测试
/start
9.发送命令登录tg
/user
选择重新登陆
评论 (1)