Yesman for NoneBot2
Project description
📖 介绍
这里是插件的详细介绍部分
💿 安装
使用 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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c974968d11853d21d046375d7cc2d22a69e832b08d87f2ac103c625903989c6 |
|
MD5 | e3113950b44c9fe0c2d557f234aa74db |
|
BLAKE2b-256 | 583b5e8897e98fd08ffda6dfcb92605026ed9ff3c74659d2806b4f8e1f9f547d |
Close
Hashes for nonebot_plugin_yesman-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 077dee32d29f434b8cd4532ad8d6bfee271635f96804c3bcb601302bb186df11 |
|
MD5 | 1db5eb06cd3a1dc695fa449f65f625e4 |
|
BLAKE2b-256 | f6140ef1dc8fe9ccfd05127642181170bb1150430c9da306b2429b2389b51d83 |