Skip to content

Commit f2b2bc2

Browse files
committed
fix: add missing Any import in random_events.py, add Release body content
- random_events.py: Add 'Any' to typing imports (caused CI failure) - release.yml: Add detailed release body with features, install guide, quick start
1 parent 077d6b8 commit f2b2bc2

2 files changed

Lines changed: 38 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,46 @@ jobs:
3333
run: |
3434
python -m unittest discover -s tests -v
3535
36+
- name: Extract version from tag
37+
id: get_version
38+
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
39+
3640
- name: Create Release
3741
uses: softprops/action-gh-release@v1
3842
with:
43+
name: "HuTao Dual Mode Skill ${{ steps.get_version.outputs.VERSION }}"
44+
body: |
45+
## 胡桃·双生引渡者 ${{ steps.get_version.outputs.VERSION }}
46+
47+
### 主要特性
48+
- **双模式系统**:SFW(全年龄)/ NSFW(成人向)一键切换
49+
- **好感度系统**:8个等级,每日签到,连续加成
50+
- **随机事件**:惊喜、浪漫、危机、搞笑、专属事件
51+
- **深夜模式**:22:00-04:00 自动触发特殊语气
52+
- **灵魂契约**:与胡桃缔结专属羁绊
53+
54+
### 安装
55+
```bash
56+
openclaw skill install https://github.com/Kitaro-Loked/HuTao-Skill
57+
```
58+
59+
### 快速开始
60+
```
61+
模式 sfw # 全年龄模式(默认)
62+
模式 nsfw # 成人向模式
63+
签到 # 每日签到增加好感度
64+
好感度 # 查看好感度状态
65+
帮助 # 查看所有指令
66+
```
67+
68+
### 文件清单
69+
- `hutao_skill/` - Skill 主代码
70+
- `tests/` - 30个单元测试
71+
- `README.md` - 完整文档
72+
- `SKILL.md` - Skill 配置说明
73+
74+
### 测试状态
75+
✅ Python 3.10 / 3.11 / 3.12 / 3.13 全部通过
3976
generate_release_notes: true
40-
files: |
41-
hutao_skill/*.py
42-
hutao_skill/*.json
43-
hutao_skill/data/.gitkeep
4477
env:
4578
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

hutao_skill/random_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import logging
99
import random
1010
import time
11-
from typing import Dict, List, Optional
11+
from typing import Any, Dict, List, Optional
1212

1313
logger = logging.getLogger(__name__)
1414

0 commit comments

Comments
 (0)