mizorewww/x_gift_bot

X Premium gift CLI and redemption site

Open original source ↗

Older snapshot: check the original source for current information.

From the publisher

README & documentation

Source preview

Read the project’s overview, installation instructions and usage examples. The original README is the source of truth.

X (Twitter) Premium 礼品兑换平台。你生成兑换码发给用户,用户在网页上输入兑换码和自己的 X 用户名,系统自动完成 Premium 赠送的下单与付款。 以下截图来自本地模拟预览(全部为示例数据): 管理页深色模式: 想先看看界面?只需要 Node.js 22+: 打开 http://127.0.0.1:4173 是兑换页,http://127.0.0.1:4173/admin 是管理后台。所有数据都是内存示例,不连接真实服务。在兑换页输入 XG- 加 48 个字母 A 可以演示完整成功流程。 部署前请先准备好以下四样东西,配置向导会逐项询问: 网络路径独立配置:X 账号与资格检查始终直连;生成付款链接所需的地区报价校验与创建链接使用同一个 proxy 出口,避免币种和金额因地区不同而变化;X 请求不读取环境代理;Stripe 可使用包含 direct 的 payment-outbounds 节点池。连接故障触发 30 分钟冷却,安全查询最多尝试 3 个出口;付款确认不会自动重放。未配置或空数组时,新订单直连。Stripe 不读取环境代理。详见 付款节点池配置。直接在浏览器打开 Stripe 链接时使用浏览器网络。 另外需要:一台 Linux 服务器、一个指向该服务器的域名、服务器上安装 Go 1.27+(或在自己电脑上构建后上传二进制)。 向导会一步步引导你完成配置,全程有中文提示: 完成后运行 ./bin/xgift status,六条记录全部显示 verified 即为成功。 把向导生成的 site.env、admin-password、vault-password 放到安全目录(生产建议 /etc/xgift/,权限 0600),然后: site.env 各字段含义: 程序只监听本机端口,需要 Caddy(或任意反向代理)提供 HTTPS。deploy/Caddyfile 是模板,把 xp.example.com 替换成你的域名后放到 Caddy 配置目录并 reload 即可。模板默认只放行 Cloudflare 回源 IP,不用 Cloudflare 时删掉 @cloudflare 相关段、保留 reverseproxy 即可。 验证: 浏览器打开 https://你的域名/admin,输入用户名 admin 和向导生成的密码: 更新配置用 put(从标准输入读取新值): 付款卡按「卡 × 节点」组合随机轮换:每 3 个连续订单使用同一组合;任意订单被拒后立即换组合,被拒的那张卡进入 30 分钟冷却(其他卡继续轮换),补单也走同一逻辑。支付方明确 donottryagain 时该卡永久封锁直到显式解除。cards add 追加或更新(同卡号替换),cards remove --last4 1234 移除,cards rotate 立即结束当前组合,cards unblock 清除冷却与永久封锁。 密码文件丢了怎么办? 无法恢复。加密数据全部作废,需要删除 vault.db 后重新运行 xgift setup。请把它和数据库一起备份。 X Cookie 过期了? macOS 上用 ./bin/xgift import-chrome 一键刷新;其他系统重新从浏览器复制后用 put…

mizorewww/x_gift_bot on GitHub A short preview, not the full document.

Read the full README ↗ · Preview checked 2026-11-13T17:18:42.229Z

Inside the original README — Document outline
  1. XGift
  2. 截图
  3. 本地预览(不写任何真实配置)
  4. 部署教程
  5. 第一步:准备这些东西
  6. 第二步:构建
  7. 第三步:运行配置向导
  8. 第四步:启动网站
  9. 第五步:配置 HTTPS 反向代理
  10. 第六步:开始使用
  11. 日常维护
  12. 常见问题

Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.

Links from the README

References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.

Documentation belongs to its respective authors. Reported project/model license: MIT. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.

What this repository does

X Premium gift CLI and redemption site

Repository facts

Owner
mizorewww
Primary language
Go
Stars
1,115
Forks
354
Open issues + pull requests
1
License
MIT
Archived
No
Default branch
main
Created
2026-10-02T10:29:43.000Z
Last push
2026-10-09T01:46:24.000Z

Topics and intended use

No topics were included in the latest source metadata.

Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.

Evaluate before installing

Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.

README and project files

Issues and maintenance discussion

Releases and changelog

Source and freshness

Source: GitHub. Metadata observed 2026-10-09T12:06:54.953Z. Daily imports are snapshots, not real-time monitoring.

Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.

Open original source

Related repositories

avelino/awesome-go

ollama/ollama

golang/go

kubernetes/kubernetes

JuliusBrussee/caveman

netdata/netdata