nonebot-plugin-group-game · 群互动游戏
NoneBot2 微信群互动小游戏合集(OneBot v12),16+ 玩法开箱即用:
签到 · 打劫 · 劫色 · 收小弟/打工 · 求婚 · 商店道具 · 贵族 · 银行 · 转账 · 刮刮乐 · 成语接龙 · 财富排行榜
💿 安装
nb plugin install nonebot-plugin-group-game
# 或
pip install nonebot-plugin-group-game
在 bot.py 或 pyproject.toml 中加载插件 nonebot_plugin_group_game。
🎮 指令一览
| 分类 | 指令 |
|---|---|
| 基础 | 签到、游戏帮助、我的金币 |
| 战斗 | 打劫 @某人、劫色 @某人(CD / 每日上限 / 魅力值) |
| 小弟 | 收小弟 @某人、同意、拒绝、放生、赎身、小弟打工、小弟收工 |
| 社交 | 求婚 @某人、离婚、转账 N @某人 |
| 消费 | 商店、购买 <道具>、贵族 |
| 金融 | 存款 N、取款 N、抢银行(存款日息 10%) |
| 娱乐 | 刮刮乐、购买刮刮乐 N、成语接龙 [成语]、排行榜 |
经济系统全部走 SQLite 台账:转账零和、道具消费进销毁账户、彩票整池销毁——净金币只出不进,不会通胀。
⚙️ 配置(环境变量,均可选)
| 变量 | 默认 | 说明 |
|---|---|---|
GROUP_GAME_DB |
<运行目录>/data/group_game.db |
SQLite 数据文件路径 |
BRIDGE_URL |
http://127.0.0.1:9527 |
可选:OneBot v12 桥的 /nicks 接口,用于显示群昵称;不配置时回退显示用户 ID |
🔧 设计要点
- 无 cron:所有结算在指令入口惰性执行;唯一后台任务是 30 秒巡检(刮刮乐整池销毁 + 成语接龙超时),进程重启后自动补跑
- 仅依赖
nonebot2,数据层为标准库sqlite3,单文件即备份 - 群昵称显示走可选 HTTP 桥(
BRIDGE_URL),任何实现该接口的服务都兼容
📄 License
MIT
Metadata
Release files for nonebot-plugin-group-game 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nonebot_plugin_group_game-0.1.1.tar.gz | 26.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_group_game-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.3 kB
Release files / nonebot_plugin_group_game-0.1.1.tar.gz
| Download URL | nonebot_plugin_group_game-0.1.1.tar.gz |
|---|---|
| Size | 26.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca44648c00ebf915039c5f09ad2fe0b446b8e94b65d4556c42260a502aa17753
|
|
BLAKE2b-256 checksum How to use checksums |
7b5d67ade5ad864c761185bf72a01fd7b2090efc7b7a6fa27fa3d2d98557f75c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.
Transparency logRelease files / nonebot_plugin_group_game-0.1.1-py3-none-any.whl
| Download URL | nonebot_plugin_group_game-0.1.1-py3-none-any.whl |
|---|---|
| Size | 28.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44cc6204dcc2d381c1a79efc14e87583b18d93058d5edce3cb12dc46df3f45f6
|
|
BLAKE2b-256 checksum How to use checksums |
5547009e64d4c6fad8f28d1ba4b082097db8f8542a415b93e6a9f40375255989
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.
Transparency logSecurity for nonebot-plugin-group-game 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for nonebot_plugin_group_game-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.