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 的数组 |
🎉 使用
想要回复被肯定时,发言时以.
或。
结尾即可。(也可以自定义为自己喜欢的)
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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2764009118d63fcfa4a0fe6f6a891f1deac7795e7fb32e58058fc4f25025f724 |
|
MD5 | c51b5b7319c1b49c503c09597ffb81e4 |
|
BLAKE2b-256 | b5f5a58874472fc79d5959d07d4608260dbacb396fe4ad53208a73e6b1599c32 |
Close
Hashes for nonebot_plugin_yesman-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a36153b549e2d3c34277870fd54d1b7e0f2ec50f1f682d9d9e0ec1272d22ee2d |
|
MD5 | 9ee7d153124b2e64538c2bace9285d16 |
|
BLAKE2b-256 | 4e28619bdde1f801567e4c0721a075281753b3c9ec997d4c7728b6c414981d10 |