mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-27 14:28:47 +08:00
更新bot启动脚本
This commit is contained in:
parent
212cbd79e9
commit
989c4228c1
10
shell/bot.sh
10
shell/bot.sh
|
@ -4,16 +4,20 @@
|
|||
dir_shell=/ql/shell
|
||||
. $dir_shell/share.sh
|
||||
|
||||
echo -e "安装bot依赖...\n"
|
||||
echo -e "1、安装bot依赖...\n"
|
||||
apk --no-cache add -f zlib-dev gcc jpeg-dev python3-dev musl-dev freetype-dev
|
||||
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
pip3 install telethon python-socks[asyncio] pillow qrcode requests prettytable
|
||||
|
||||
echo -e "下载bot所需文件...\n"
|
||||
echo -e "2、下载bot所需文件...\n"
|
||||
repo_path="${dir_repo}/SuMaiKaDe_jddockerbot"
|
||||
git clone -b master https://ghproxy.com/https://github.com/SuMaiKaDe/jddockerbot.git $repo_path
|
||||
cp -rf "$repo_path/jbot" $dir_root
|
||||
cp -f "$repo_path/config/bot.json" "$dir_root/config"
|
||||
|
||||
echo -e "3、启动bot程序...\n"
|
||||
cd $dir_root
|
||||
nohup python3 -m jbot &
|
||||
kill -9 $(ps -ef | grep "python3 -m jbot" | grep -v grep | awk '{print $1}') 2>/dev/null
|
||||
nohup python3 -m jbot &
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user