📖 介绍
是 nonebot-plugin-calc-game 的重构版!
这是利用机器人复刻 计算器:游戏 的一个插件。游戏玩法:通过给出的操作方式由当前数字达到计算目标。目前有 319 关。
反馈请加作者 QQ:2378975755。注明 插件反馈。若有关卡投稿亦可加 QQ,注明 关卡投稿。关卡应包含完整的关卡要素,并给出最优解。
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-calcgame-new --upgrade
使用 pypi 源安装
nb plugin install nonebot-plugin-calcgame-new --upgrade -i "https://pypi.org/simple"
使用清华源安装
nb plugin install nonebot-plugin-calcgame-new --upgrade -i "https://pypi.tuna.tsinghua.edu.cn/simple"
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令uv
uv add nonebot-plugin-calcgame-new
安装仓库 master 分支
uv add git+https://github.com/pmlrin/nonebot-plugin-calcgame-new@master
pdm
pdm add nonebot-plugin-calcgame-new
安装仓库 master 分支
pdm add git+https://github.com/pmlrin/nonebot-plugin-calcgame-new@master
poetry
poetry add nonebot-plugin-calcgame-new
安装仓库 master 分支
poetry add git+https://github.com/pmlrin/nonebot-plugin-calcgame-new@master
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_calcgame_new"]
使用 nbr 安装(使用 uv 管理依赖可用)
nbr 是一个基于 uv 的 nb-cli,可以方便地管理 nonebot2
nbr plugin install nonebot-plugin-calcgame-new
使用 pypi 源安装
nbr plugin install nonebot-plugin-calcgame-new -i "https://pypi.org/simple"
使用清华源安装
nbr plugin install nonebot-plugin-calcgame-new -i "https://pypi.tuna.tsinghua.edu.cn/simple"
⚙️ 配置
本插件没有配置项。
🎉 使用
指令表
进入游戏前:
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
/calc |
群员 | 否 | 均可 | 随机抽取一个谜题 |
/calc <num> |
群员 | 否 | 均可 | 抽取指定谜题 |
/calc 帮助 |
群员 | 否 | 均可 | 发送游戏规则 |
进入游戏后:
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
<操作方式> |
群员 | 否 | 均可 | 执行你发送的操作方式(一般为 1 或 2 个数字) |
帮助 |
群员 | 否 | 均可 | 发送本关所涉及操作方式的用法 |
退出 |
群员 | 否 | 均可 | 退出本局游戏 |
🎨 效果图
Metadata
Release files for nonebot-plugin-calcgame-new 0.1.4
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 | Actions |
|---|---|---|---|---|
| nonebot_plugin_calcgame_new-0.1.4.tar.gz | 20.8 kB | Without provenance | Details for nonebot_plugin_calcgame_new-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_calcgame_new-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_calcgame_new-0.1.4-py3-none-any.whl |
Total release size: 45.4 kB
Release files / nonebot_plugin_calcgame_new-0.1.4.tar.gz
| Download URL | nonebot_plugin_calcgame_new-0.1.4.tar.gz |
|---|---|
| Size | 20.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c41b4f7daae5584fba136f30405d3b0e1c01446ce8d8dc6d8915435a405200fe
|
|
BLAKE2b-256 checksum How to use checksums |
92721135a4308641655f42058e2b22203bad3e4f743c36a132a7aa7534a433e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / nonebot_plugin_calcgame_new-0.1.4-py3-none-any.whl
| Download URL | nonebot_plugin_calcgame_new-0.1.4-py3-none-any.whl |
|---|---|
| Size | 24.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7fb38b9b6002e12f46a90e4dec51d47ced4c6587767fb1654dd74225e07db775
|
|
BLAKE2b-256 checksum How to use checksums |
55b04775af9012b8d83b3306d696e67a292cbd651415ddc04c445a575c9b8d60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for nonebot-plugin-calcgame-new 0.1.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.