# free-games-claimer 接入 Server酱：自动领完免费游戏后微信通知你（2026 教程）

> free-games-claimer 内置 Apprise 通知框架，设置 NOTIFY 环境变量为 schan://SendKey 即可在自动领取 Epic/GOG/Amazon 免费游戏后推送微信通知。

- 网页版：https://sct.ftqq.com/docs/integrations/free-games-claimer/
- 更新日期：2026-07-17

# free-games-claimer + Server酱：自动领完免费游戏，微信告诉你领了啥

> 效果：free-games-claimer 自动领取 Epic、GOG、Amazon Prime 免费游戏后，通过 Server酱 把领取结果推送到你的微信。

## 前置条件

- **Server酱 SendKey**：登录 sct.ftqq.com，在「SendKey」页面复制。详见 [30 秒获取 SendKey](https://sct.ftqq.com/docs/getting-started/sendkey/)。schan:// 协议对接 Server酱Turbo，需要 SCT 开头的 SendKey。
- **free-games-claimer**：已通过 Docker 部署或准备部署。

## 配置步骤

**1. 设置 NOTIFY 环境变量**

docker run 方式：

```bash
docker run -e NOTIFY="schan://你的SENDKEY" \
  vogler/free-games-claimer
```

docker-compose 方式：

```yaml
services:
  free-games-claimer:
    image: vogler/free-games-claimer
    environment:
      - NOTIFY=schan://你的SENDKEY
```

将 `你的SENDKEY` 替换为你的 SCT 开头 SendKey。`schan://` 是 Apprise 中 Server酱的专用协议，底层调用 `https://sctapi.ftqq.com/你的SENDKEY.send`。free-games-claimer 内置 Apprise 通知框架，`NOTIFY` 环境变量即为其通知配置入口。

**2. 验证通知是否生效**

部署完成后，等待 free-games-claimer 执行一次领取任务，检查微信是否收到通知。也可以用 Apprise 命令行单独测试 Server酱 通道：

```bash
pip install apprise
apprise -t "测试通知" -b "这是一条来自 free-games-claimer 的测试" "schan://你的SENDKEY"
```

**3. 配置推送通道（可选）**

如需推送到企业微信、钉钉群或飞书群，参见 [通道配置说明](https://sct.ftqq.com/docs/getting-started/channels/)。

## 完整示例

以下 docker-compose.yml 片段展示 NOTIFY 在配置中的位置，其他环境变量按 free-games-claimer 自身需求添加：

```yaml
services:
  free-games-claimer:
    image: vogler/free-games-claimer
    environment:
      - NOTIFY=schan://你的SENDKEY
      # 其他环境变量按 free-games-claimer 文档添加
    restart: unless-stopped
```

通用 Apprise 接法详见 [Apprise 接入 Server酱](https://sct.ftqq.com/docs/integrations/apprise/)。

## 常见问题

**每天能发多少条通知？**

免费用户每天 5 条，每分钟上限 50 条。订阅会员目前特价最低 3 元/月，一天最多可发 1000 条（[价格详情](https://sct.ftqq.com/subscribe)）。

**设置了 NOTIFY 但没收到微信消息怎么办？**

先确认 SendKey 为 SCT 开头。再用 `apprise -vv` 命令行测试通道是否通。更多排查步骤见 [常见问题与排查](https://sct.ftqq.com/docs/getting-started/faq/)。

**领取频率高会不会触发限制？**

Server酱 免费用户每分钟上限 50 条，会员每日 API 请求上限 1000 条。请根据 free-games-claimer 的实际领取频率评估是否足够。

## 相关集成

- [青龙面板接入 Server酱](https://sct.ftqq.com/docs/integrations/qinglong/) — 定时任务通知，与 free-games-claimer 类似的自动化场景
- [Python 脚本接入 Server酱](https://sct.ftqq.com/docs/integrations/python/) — 用 Python 代码直接调用 Server酱 API
- [Uptime Kuma 接入 Server酱](https://sct.ftqq.com/docs/integrations/uptime-kuma/) — 服务监控告警推送到微信


## 懒人方案：把这段话复制给你的 AI 助手

把下面这段文字原样粘贴给 Claude Code、Cursor 或任何 AI 编程助手，它就会替你完成 Server酱 的接入：

```text
请帮我把 Server酱 微信通知接入到我当前的项目/工具中：
1. API：POST https://sctapi.ftqq.com/{SendKey}.send，参数 title（必填，不能含换行）、desp（正文，支持 Markdown，可选）；成功时返回 JSON 的 code 为 0。
2. 如果我的 SendKey 以 sctp 开头，则改用 https://{uid}.push.ft07.com/send/{SendKey}.send，uid 是 SendKey 中 sctp 与 t 之间的数字。
3. SendKey 从环境变量 SERVERCHAN_SENDKEY 读取；如果没有，提醒我到 https://sct.ftqq.com 免费获取（每天 5 条额度）。
4. 安全要求：不要把 SendKey 硬编码进代码、不要打印到日志、不要提交到 git。
5. 频率约定：任务结束发 1 条结果摘要即可，批量任务合并成一条，不要每步都推。
请根据我当前的项目和场景直接写好代码/配置并验证。
```

