📖 介绍
这是利用机器人复刻 计算器:游戏 的一个插件。游戏玩法:通过给出的操作方式由当前数字达到计算目标。目前有 319 关。多平台支持。
部分原版答案请见 solve 文件夹。
反馈请加作者 QQ:2378975755。注明 插件反馈。若有关卡投稿亦可加 QQ,注明 关卡投稿。关卡应包含完整的关卡要素,并给出最优解。
感谢插件 nonebot-plugin-txt2img 提供的文字转图片功能。
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-calc-game
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-calc-game
pdm
pdm add nonebot-plugin-calc-game
poetry
poetry add nonebot-plugin-calc-game
conda
conda install nonebot-plugin-calc-game
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_calc_game"]
⚙️ 配置
无必填配置。
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
calcgame_picfontsize |
否 | 42 | 图片输出中字符的大小 |
🎉 使用
指令表
进入游戏前:
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
/calc |
群员 | 否 | 群聊 | 随机抽取一个谜题 |
/calc <num> |
群员 | 否 | 群聊 | 抽取指定谜题 |
/calc 帮助 |
群员 | 否 | 群聊 | 发送游戏规则 |
进入游戏后:
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
<操作方式> |
群员 | 否 | 群聊 | 执行你发送的操作方式 |
帮助 |
群员 | 否 | 群聊 | 发送本关所涉及操作方式的用法 |
退出 |
群员 | 否 | 群聊 | 退出本局游戏 |
效果图
📄 许可证
本项目使用 MIT 许可证开源。
Release files for nonebot-plugin-calc-game 1.0.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 | |
|---|---|---|---|
| nonebot_plugin_calc_game-1.0.1.tar.gz | 16.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_calc_game-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.5 kB
Release files / nonebot_plugin_calc_game-1.0.1.tar.gz
| Download URL | nonebot_plugin_calc_game-1.0.1.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c59c1682a4d3ad006db70bd4abe751fdb260e00fd223d06eed539463b9fa910c
|
|
BLAKE2b-256 checksum How to use checksums |
55a99126b2973c526edcf8bd45c248304d63c4b8b91daad3935552249144bfdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / nonebot_plugin_calc_game-1.0.1-py3-none-any.whl
| Download URL | nonebot_plugin_calc_game-1.0.1-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
690f6aceff7d441976ab37bc496118c17978a371c1fa41c5a54c0742f0fe6017
|
|
BLAKE2b-256 checksum How to use checksums |
a2462531e9472fcd778ffbf25630daf9e76c7b62ebb4f999a694e5895c436952
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|