nonebot-plugin-duel
Project description
## 📖 介绍
NoneBot2决斗插件
已兼容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秒内的一个随机时间喊出`开始`,在这之后最先发送`开枪`的博士胜出,在喊开始之前发送的博士会被视为犯规。
💡 感谢
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
File details
Details for the file nonebot_plugin_duel-0.1.2.tar.gz
.
File metadata
- Download URL: nonebot_plugin_duel-0.1.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a114aa2d1785153167266404a097ef314d2492a56507e82f20a8f5199bbe21ac |
|
MD5 | 42e41b7ca4b001c07a820969214ef674 |
|
BLAKE2b-256 | b288c89e18190fa8855f8e866803f2cd5300ead44b140c0e4a42c5468cd048e6 |
File details
Details for the file nonebot_plugin_duel-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_duel-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 199466c56981267945ab2337f8da57612bea79101318a21371dd03561aede1d3 |
|
MD5 | 39fd56639f4bca778b8d2d07b05c92b2 |
|
BLAKE2b-256 | e7a4e2e52b6d5d422ec2ff761160484dbbca04f8f8d95733e4d94ac7aebeae0d |