diff --git a/README.md b/README.md index 56505e2..e95ac8b 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,18 @@ ## 快速開始 ```bash -npm install -g telegram-codex-bot +# 套件發佈在公司的 npm registry(不是官方 npmjs),安裝要指定 --registry +npm install -g telegram-codex-bot --registry=https://git.catan.com.tw/api/packages/Frontend/npm/ + telegram-codex-bot start # 先做環境檢查(codex/登入/pm2/git),再把控制台掛上 pm2 ``` +之後升級同樣帶 `--registry`: + +```bash +npm update -g telegram-codex-bot --registry=https://git.catan.com.tw/api/packages/Frontend/npm/ +``` + 打開 **http://localhost:3799** →「🤖 Bot 管理」→「➕ 新增 Bot」: 1. 填名稱、Telegram token(儲存時自動驗證)