Skip to content

Commit

Permalink
fix(README.md, example.stack.env): update configuration instructions …
Browse files Browse the repository at this point in the history
…and remove LAVALINK_SERVER setting
  • Loading branch information
Nat1anWasTaken committed May 13, 2024
1 parent 412ce3d commit 2bdf272
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,25 @@ docker-compose up
docker pull ghcr.io/nat1anwastaken/lava:latest
```

2. 設置好你的 Lavalink 節點,並將其 IP 和 Port 填入 `configs/lavalink.json`,如果你懶得架設 Lavalink,請使用 Docker Compose
```json
{
"host": "Lavalink 節點 IP",
"port": "Lavalink 節點 Port"
}
```

3. 創建一個 `stac.env` 檔案,並填入以下內容
```env
TOKEN=機器人 Token
SPOTIFY_CLIENT_ID=Spotify client id
SPOTIFY_CLIENT_SECRET=Spotify client secret
```

4. 啟動機器人
```bash
docker run -it \
--name ghcr.io/nat1anwastaken/lava:latest \
-e TOKEN="機器人 Token" \
-e LAVALINK_SERVER="true" \ # 啟動內建 Lavalink 伺服器
-e SPOTIFY_CLIENT_ID="Spotify client id" \
-e SPOTIFY_CLIENT_SECRET="Spotify client secret" \
--restart unless-stopped \
lava
```
Expand Down
1 change: 0 additions & 1 deletion example.stack.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
TOKEN=
SPOTIFY_CLIENT_ID=
SPOTIFY_CLIENT_SECRET=
LAVALINK_SERVER=true

# LOGGING_LEVEL_ROOT=INFO
# LOGGING_LEVEL_LAVALINK=INFO

0 comments on commit 2bdf272

Please sign in to comment.