Yesman for NoneBot2
Project description
📖 介绍
"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 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot_plugin_example"]
⚙️ 配置
在 nonebot2 项目的.env
文件中添加下表中的必填配置
配置项 | 必填 | 默认值 | 说明 |
---|---|---|---|
yesman_threshold | 是 | 0.5 | 设置概率触发的阈值,例如0.5表示50%的概率 |
yesman_allowed_user_ids | 是 | [] | 允许的 user_id 的数组 |
🎉 使用
想要回复被肯定时,发言时以.
或。
结尾即可。(也可以自定义为自己喜欢的)
参考
A-kirami/nonebot-plugin-answersbook: 愿一切无解都有解!解除你的迷惑,终结你的纠结!
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-yesman-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bedbb217b6353fb59df2fe675d9f04bfc017c507207c03424b707f1ea66ccb78 |
|
MD5 | bcd7fa3f4c707f858db60ad2e5326e87 |
|
BLAKE2b-256 | b689f181131e0d099abe9dbb73b8c6641c99e35d6c976624c9e384e99168c5b9 |
Close
Hashes for nonebot_plugin_yesman-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3624ddf8ae6a2ea377927a5f7e61c4a461ea646e2afadb36f481fae5c44efd8d |
|
MD5 | cecce5f564ce855cda2e883e7a39aa6d |
|
BLAKE2b-256 | d5486af80f107ef6eeffa9f4274c58937cddbb5695560a50d5c1e978b9ce415d |