已兼容pydantic v1&v2
💿 安装
nb-cli
nb plugin install nonebot-plugin-duel
pip
pip install nonebot_plugin_duel
⚙️ 配置
默认配置示例
# 机器人的自称
DUEL__NICKNAME=阿米娅
# 插件的黑名单用户,是一个int类型的列表
DUEL__BLACKLISTED_USERS=[]
🎉 使用
- 发送关键词
决斗并@一个人即可和他发起决斗,例如决斗@阿米娅 - 在同一个群里,未结束先前的决斗不会开启新的决斗
- 说 `兔兔,我要与[@一个人]决斗`
- 对方需在30秒内回复`同意`,否则决斗会取消。
- 接下来,阿米娅会在60秒内的一个随机时间喊出`开始`,在这之后最先发送`开枪`的博士胜出,在喊开始之前发送的博士会被视为犯规。
💡 感谢
Metadata
Release files for nonebot-plugin-duel 0.1.2
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_duel-0.1.2.tar.gz | 6.0 kB | Without provenance | Details for nonebot_plugin_duel-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_duel-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_duel-0.1.2-py3-none-any.whl |
Total release size: 13.6 kB
Release files / nonebot_plugin_duel-0.1.2.tar.gz
| Download URL | nonebot_plugin_duel-0.1.2.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a114aa2d1785153167266404a097ef314d2492a56507e82f20a8f5199bbe21ac
|
|
BLAKE2b-256 checksum How to use checksums |
b288c89e18190fa8855f8e866803f2cd5300ead44b140c0e4a42c5468cd048e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / nonebot_plugin_duel-0.1.2-py3-none-any.whl
| Download URL | nonebot_plugin_duel-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
199466c56981267945ab2337f8da57612bea79101318a21371dd03561aede1d3
|
|
BLAKE2b-256 checksum How to use checksums |
e7a4e2e52b6d5d422ec2ff761160484dbbca04f8f8d95733e4d94ac7aebeae0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for nonebot-plugin-duel 0.1.2
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.