Skip to main content

一个在指定的用户发言时,有几率回复指定的内容的nonebot插件

Project description

nonebot-plugin-diss-anybody

nonebot-plugin-diss-anybody

用于 NoneBot2OneBot 的随机怼人插件

这是什么?

当你指定的人在群里发言时,有几率对 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_diss_anybody-1.1.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page