一个在指定的用户发言时,有几率回复指定的内容的nonebot插件
Project description
这是什么?
当你指定的人在群里发言时,有几率对 TA 的发言作出你指定的回复
安装插件
使用 nb-cli 安装(推荐)
nb plugin install nonebot-plugin-diss-anybody
使用 pip/pipenv/poetry/pdm 安装
# pip
pip install nonebot-plugin-diss-anybody
# pipenv
pipenv install nonebot-plugin-diss-anybody
# poetry
poetry add nonebot-plugin-diss-anybody
# pdm
pdm add nonebot-plugin-diss-anybody
配置插件
配置项 | 类型 | 默认值 | 说明 |
---|---|---|---|
diss_enabled | bool | True | 是否启用插件 |
diss_global_blacklist | list | 空 | 不在这些群里做回复(全局) |
diss_global_chance | float | 0.1 | 回复几率(全局) |
diss_global_cd | float | 5.0 | 两次回复最小间隔(全局) |
使用插件
目前该插件的回复配置只能手动书写,将来会加入更完善的对话支持
TODO List
- 直接通过对话设置回复内容/几率/CD
- 优化代码结构
- 支持回复图片/语音/视频等
- 迁移到 nonebot-plugin-saa 来实现不同适配器支持
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
Close
Hashes for nonebot_plugin_diss_anybody-1.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c98f458b9bdc70d1287ad3a348aecb23679064445f5eb2fe3a036ccda498f941 |
|
MD5 | 80ac0f282421d47e27e6dba01c388193 |
|
BLAKE2b-256 | 94c5734122b74cdc73070d56bcc47fa2a9c4bbcfd05e251e37ffb454fb6ded3f |
Close
Hashes for nonebot_plugin_diss_anybody-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd887fc5f64fc95417e900ddbbb85dd20a19b33e5d3dff4a7a2b31425b8311b7 |
|
MD5 | 5b172bb68351c30460c7b1de82c8d4bb |
|
BLAKE2b-256 | e7f1395b956cf0d95e594f4e06e26470932f68e479752a141c96e16d57232ebb |