瀏覽代碼

Update required Python version
Add -u switch to systemd service unit to make output unbuffered

Kumi 1 年之前
父節點
當前提交
9f5e87db4c
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      README.md
  2. 1 1
      gptbot.service

+ 1 - 1
README.md

@@ -15,7 +15,7 @@ Simply clone this repository and install the requirements.
 
 ### Requirements
 
-- Python 3.8 or later
+- Python 3.10 or later
 - Requirements from `requirements.txt` (install with `pip install -r requirements.txt` in a venv)
 
 ### Configuration

+ 1 - 1
gptbot.service

@@ -7,7 +7,7 @@ Type=simple
 User=gptbot
 Group=gptbot
 WorkingDirectory=/opt/gptbot
-ExecStart=/opt/gptbot/venv/bin/python3 -m gptbot
+ExecStart=/opt/gptbot/venv/bin/python3 -um gptbot
 Restart=always
 RestartSec=10