Skip to main content

Nonebot2 plugin to make your bot talk weird.

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-miao

✨ 让Bot的发言添加一些奇怪的口癖! ✨

license pypi python

📖 介绍

通过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


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 hashes)

Uploaded Source

Built Distribution

nonebot_plugin_miao-1.1.0-py3-none-any.whl (15.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page