Skip to content

Commit

Permalink
自动重启脚本不升级pandora
Browse files Browse the repository at this point in the history
  • Loading branch information
nick3 committed Sep 28, 2023
1 parent ee35e61 commit 6f5e069
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/user.txt
/token.txt
/pandora
/users.txt
8 changes: 4 additions & 4 deletions autorestart.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import os

def restart():
# 执行pip3 install命令
# 执行 pip3 install 命令
os.system('kill -9 $(lsof -t -i:8008)')

os.system('pip3 install --upgrade pandora-chatgpt')
# os.system('pip3 install --upgrade pandora-chatgpt')

# 执行python3 auto_pool_token.py命令
# 执行 python3 auto_pool_token.py 命令
os.system('python3 /app/ChatGPT-3.5-AccessToken-Web/auto_pool_token.py')
# os.system('cd /app/pandora')
# 执行yarn pandora -s -t tokens.txt &命令
# 执行 yarn pandora -s -t tokens.txt &命令
# os.system('nohup pandora -s 0.0.0.0:8008 -t token.txt > output.log 2>&1 &')

print('Commands executed successfully!')
Expand Down

0 comments on commit 6f5e069

Please sign in to comment.