Skip to main content

Yesman for NoneBot2

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-yesman

✨ 你的发言,值得被肯定 ✨

license pypi python

📖 介绍

"nonebot-plugin-yesman" 是一个用于 NoneBot 框架的插件,它的主要功能是模拟一个 "yes man"(无条件赞同的人)的行为,以一种有趣的方式回应用户的消息。

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-yesman
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-yesman
pdm
pdm add nonebot-plugin-yesman
poetry
poetry add nonebot-plugin-yesman
conda
conda install nonebot-plugin-yesman

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
yesman_threshold 0.5 设置概率触发的阈值,例如0.5表示50%的概率
yesman_allowed_user_ids [] 允许的 user_id 的数组

🎉 使用

想要回复被肯定时,发言时以.结尾即可。(也可以自定义为自己喜欢的)

(群聊中使用)

参考

A-kirami/nonebot-plugin-answersbook: 愿一切无解都有解!解除你的迷惑,终结你的纠结!

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-yesman-1.6.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_yesman-1.6.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file nonebot-plugin-yesman-1.6.0.tar.gz.

File metadata

  • Download URL: nonebot-plugin-yesman-1.6.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for nonebot-plugin-yesman-1.6.0.tar.gz
Algorithm Hash digest
SHA256 cce900fbfa09df629e7d69159492b8bdc72dd9b946e837223b66d84553920e9d
MD5 2773a930bd0f157af853a5698fe60161
BLAKE2b-256 339a79e5d0b819b049d1c9f064a82ddc64e0ae0087b1838ce1b05a43313a12de

See more details on using hashes here.

File details

Details for the file nonebot_plugin_yesman-1.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_yesman-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6804bd4307fb6c254d91a033f492d168996fc67d5598f1b03566dae46f0cc708
MD5 292a30c52ff5e6fb99536bb6c0e5c507
BLAKE2b-256 4cf5d1477daf4e7db8d1cd13ccfabedeb342ab70b9c1312dbc4899f70d74a8b2

See more details on using hashes here.

Supported by

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