A COC dice plugin for Nonebot2
Project description
NoneBot Plugin COC-Dicer
COC骰子娘插件 For Nonebot2
使用方法
nb plugin install nonebot-plugin-cocdicer // or
pip install --upgrade nonebot-plugin-cocdicer
在 Nonebot2 入口文件(例如 bot.py )增加:
nonebot.load_plugin("nonebot_plugin_cocdicer")
启动机器人后,输入 .help 获取帮助信息。
骰娘技能
-
Done or Will be done soon
- .r 投掷指令
- .sc san check
- .st 射击命中判定
- .ti 临时疯狂症状
- .li 总结疯狂症状
- .coc coc角色作成
- .help 帮助信息
- .en 技能成长
-
To Do
- .set 设定
- .rule 规则速查
指令详解
.r[dah#bp] a_number [+/-]ex_number
- d:骰子设定指令,标准格式为 xdy , x 为骰子数量 y 为骰子面数, x 为1时可以省略, y 为100时可以省略;
- a:检定指令,根据后续 a_number 设定数值检定,注意 a 必须位于 a_number 之前,且 a_number 前需使用空格隔开;
- h:暗骰指令,骰子结构将会私聊发送给该指令者;(没测试过非好友,可以的话先加好友吧)
- #:多轮投掷指令, # 后接数字即可设定多轮投掷,注意 # 后数字无需空格隔开;
- b:奖励骰指令,仅对 D100 有效,每个 b 表示一个奖励骰;
- p:惩罚骰指令,同奖励骰;
- +/-:附加计算指令,目前仅支持数字,同样无需空格隔开。
举几个栗子:
.r#2bba 70:两次投掷 1D100 ,附加两个奖励骰,判定值为70;.rah:D100暗骰,由于没有 a_number 参数,判定将被忽略;.ra2d8+10 70:2D8+10,由于非D100,判定将被忽略。
以上指令理论上均可随意变更顺序并嵌套使用,如果不能,就是出bug了_(:3」∠)_
.sc success/failure san_number
- success:判定成功降低 san 值,支持 x 或 xdy 语法( x 与 y 为数字);
- failure:判定失败降低 san 值,支持语法如上;
- san_number:当前 san 值。
.en skill_level
- skill_level:需要成长的技能当前等级。
.coc age
- age:调查员年龄
交互式调查员创建功能计划中
特别鸣谢
nonebot/nonebot2:简单好用,扩展性极强的 Bot 框架
Mrs4s/go-cqhttp:更新迭代快如疯狗的 OneBot Golang 原生实现
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_cocdicer-0.1.4.tar.gz.
File metadata
- Download URL: nonebot_plugin_cocdicer-0.1.4.tar.gz
- Upload date:
- Size: 28.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.5 Linux/4.14.24-qnap
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c58f9e3c658890c4b2bbf1be6d3e8b4bc96f9b3b2c7a8124d5ece5db7bb7a69e
|
|
| MD5 |
37e50818237506f8ed991ca6535f69b3
|
|
| BLAKE2b-256 |
1a2054743f47287d40bcf8b2fbfeae83e2a308298c632120574cb8c5f2d06961
|
File details
Details for the file nonebot_plugin_cocdicer-0.1.4-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_cocdicer-0.1.4-py3-none-any.whl
- Upload date:
- Size: 28.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.5 Linux/4.14.24-qnap
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52f5d3ba5f18f4adff43d1c5e42c4f20c791af4e23167c594071ce82313268d0
|
|
| MD5 |
aecaf9035027c1665f04ad9e9dbb84e5
|
|
| BLAKE2b-256 |
d48613d5134aee750eaf10b8085c85a03c935142ef1dcf17efbc6150424156b2
|