Skip to content

新增拼手气红包插件 - #194

Open
q3cc wants to merge 3 commits into
ToolDelta-Basic:mainfrom
q3cc:codex/add-red-packet-plugin
Open

新增拼手气红包插件#194
q3cc wants to merge 3 commits into
ToolDelta-Basic:mainfrom
q3cc:codex/add-red-packet-plugin

Conversation

@q3cc

@q3cc q3cc commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

变更内容

新增 ToolDelta 类式插件 红包(插件 ID:red_packet,版本:0.2.3)。

  • 支持 .fhb / .发红包 创建公开的拼手气口令红包
  • 使用配置的经济计分板和货币名称,创建前检查余额并一次性扣款
  • 缺少参数时逐项询问,支持取消与超时
  • 每人每个红包限领一次,发送者可领取自己的红包
  • 10 分钟未领完自动退款,支持重启恢复和离线退款通知
  • 最后一份领取后播报手气最佳玩家
  • 拒绝控制符、替换字符等无效 Unicode 输入
  • 所有 tellraw 内容经过 JSON 序列化

用户影响

服务器安装后即可通过经济计分板开展公开口令红包活动;未领完余额不会因重启丢失。

验证

  • 26 个单元测试通过
  • 真实 ToolDelta 插件加载契约通过
  • Ruff 检查通过
  • 11 个市场提交 Python 模块编译通过
  • 全部函数具备 docstring,所有模块不超过 200 行
  • datas.json 必填字段、插件 ID 唯一性、前置插件 ID 和允许文件类型校验通过

@deepsource-io

deepsource-io Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

DeepSource Code Review

We reviewed changes in c6a0a1f...fc67b73 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Python Jul 27, 2026 6:14a.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@q3cc
q3cc marked this pull request as ready for review July 27, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant