📖 介绍
通过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: 本项目的基础,非常好用的聊天机器人框架。
Metadata
Release files for nonebot-plugin-miao 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_miao-1.1.0.tar.gz | 14.6 kB | Without provenance | Details for nonebot_plugin_miao-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_miao-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_miao-1.1.0-py3-none-any.whl |
Total release size: 29.9 kB
Release files / nonebot_plugin_miao-1.1.0.tar.gz
| Download URL | nonebot_plugin_miao-1.1.0.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdec89f7f1ebff93edd36af815adca05eaefa28f3dc67be6dd524a3e08e90420
|
|
BLAKE2b-256 checksum How to use checksums |
7f014b55a07fa4a51876844f5074cba4eee0ce334707cf1e9fdb7af4171fa863
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / nonebot_plugin_miao-1.1.0-py3-none-any.whl
| Download URL | nonebot_plugin_miao-1.1.0-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a91cc689c1813369a5fd5787dab82f37bc83698131c77dc61aff693d2509df8e
|
|
BLAKE2b-256 checksum How to use checksums |
bdb0b1c04597897cf51115957e9ad2d566476ce6a870ea5e4294ea635d2e1bb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for nonebot-plugin-miao 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.