一个在指定的用户发言时,有几率回复指定的内容的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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3736f07614a8c36cafbc40e30e2800b058c348d0a82800e5e9157fafe5e5bc25 |
|
MD5 | 13a50891bd22768def8e766b333b0054 |
|
BLAKE2b-256 | bfd9df5b4e0f25f9718d1a80d961cbd0b4e10b4d8869a51c5c6ac08f9e16a29c |
Close
Hashes for nonebot_plugin_diss_anybody-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00c4af868eb7531debe889eacdb0ea15e29cb1a968712583345404ad8da6c84a |
|
MD5 | 1bfe32201867a1334edbfdd955140e7e |
|
BLAKE2b-256 | f47505e5550b689a231cde52857d16fb23e11741ff6415bfcfd6763aa3ff5048 |