Initial commit: Last-Z Gift Center CLI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
56
README.md
Normal file
56
README.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# lastz-giftcenter-cli
|
||||
|
||||
Last-Z Gift Center 的命令列工具,支援查詢帳號資訊與兌換禮品碼。
|
||||
|
||||
## 安裝
|
||||
|
||||
```bash
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
## 設定
|
||||
|
||||
在專案根目錄建立 `.env` 檔案,填入你的 UID:
|
||||
|
||||
```
|
||||
UID=your_uid_here
|
||||
```
|
||||
|
||||
或在執行指令時以 `--uid` 旗標直接指定。
|
||||
|
||||
## 使用方式
|
||||
|
||||
### 查詢帳號資訊
|
||||
|
||||
```bash
|
||||
python giftcenter.py login
|
||||
```
|
||||
|
||||
輸出範例:
|
||||
|
||||
```
|
||||
登入成功
|
||||
名稱 : 玩家名稱
|
||||
UID : 1234567890
|
||||
SID : S001
|
||||
國家 : TW
|
||||
等級 : 50
|
||||
```
|
||||
|
||||
### 兌換禮品碼
|
||||
|
||||
```bash
|
||||
python giftcenter.py redeem <禮品碼>
|
||||
```
|
||||
|
||||
### 指定 UID(覆蓋 .env)
|
||||
|
||||
```bash
|
||||
python giftcenter.py --uid <uid> login
|
||||
python giftcenter.py --uid <uid> redeem <禮品碼>
|
||||
```
|
||||
|
||||
## 依賴套件
|
||||
|
||||
- [requests](https://docs.python-requests.org/)
|
||||
- [python-dotenv](https://github.com/theskumar/python-dotenv)
|
||||
Reference in New Issue
Block a user