Nonebot2 plugin to make your bot talk weird.
Project description
📖 介绍
通过on_calling_api钩子,给你的Bot的纯文本发言添加一些奇怪的口癖(。
💿 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-miao
✨ 例子
以内置的echo插件(作用是复读你的话)为例
- /echo 诶嘿
- 诶嘿喵
- /echo 诶呦你干嘛
- 诶呦你干嘛旺
🔧 配置项
在你的bot的配置文件(.env.*)中添加以下配置项(不区分大小写)
配置项 | 默认值 | 说明 |
---|---|---|
miao_words | ["喵", "旺"] | 口癖词列表 |
miao_probability | 0.5 | 添加口癖的概率 |
miao_position | end | 添加口癖的位置,可选start(开头)、end(结尾)、random(句子中随机位置) |
miao_count | 1 | 最多添加的词数量 |
💝 鸣谢
- Nonebot: 本项目的基础,非常好用的聊天机器人框架。
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
nonebot_plugin_miao-1.1.0.tar.gz
(14.6 kB
view details)
Built Distribution
File details
Details for the file nonebot_plugin_miao-1.1.0.tar.gz
.
File metadata
- Download URL: nonebot_plugin_miao-1.1.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdec89f7f1ebff93edd36af815adca05eaefa28f3dc67be6dd524a3e08e90420 |
|
MD5 | baf4d8955ee7c9639fd04307ffcc98c3 |
|
BLAKE2b-256 | 7f014b55a07fa4a51876844f5074cba4eee0ce334707cf1e9fdb7af4171fa863 |
File details
Details for the file nonebot_plugin_miao-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_miao-1.1.0-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a91cc689c1813369a5fd5787dab82f37bc83698131c77dc61aff693d2509df8e |
|
MD5 | 403266507539585f318287d3eca0820d |
|
BLAKE2b-256 | bdb0b1c04597897cf51115957e9ad2d566476ce6a870ea5e4294ea635d2e1bb4 |