Skip to main content

Se-se!

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-bnhhsh

✨ 「不能好好说话!」 ✨

license pypi python pypi download

📖 介绍

今晚看到莉沫酱的一个奇奇怪怪的项目bnhhsh,所以心血来潮做了个插件玩!

这个项目也有受到莉沫酱TG群里的黄巍Bot启发,如果想去玩的话 -> 点这里

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-bnhhsh
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-bnhhsh
pdm
pdm add nonebot-plugin-bnhhsh
poetry
poetry add nonebot-plugin-bnhhsh
conda
conda install nonebot-plugin-bnhhsh

打开 nonebot2 项目的 bot.py 文件, 在其中写入

nonebot.load_plugin('nonebot_plugin_bnhhsh')
从 github 安装 在 nonebot2 项目的插件目录下, 打开命令行, 输入以下命令克隆此储存库
git clone https://github.com/lgc2333/nonebot-plugin-bnhhsh.git

打开 nonebot2 项目的 bot.py 文件, 在其中写入

nonebot.load_plugin('src.plugins.nonebot_plugin_bnhhsh')

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
BNHHSH_UNV_MSE 0.2 unvcode的字符串不同阈值
(如0.2则会匹配80%相似度以上的字符)

🎉 使用

插件使用正则匹配所有纯字母消息,并以空白符为分隔符分割每个单词,然后自动将转换结果发送出来~
具体安装插件自己体验一下就知道了哦~mua~

📞 联系

QQ:3076823485
Telegram:@lgc2333
吹水群:1105946125
邮箱:lgc2333@126.com

💡 鸣谢

RimoChan

  • 依赖包的作者!经常做些有脑洞的有趣的东西~
  • p.s. 如果你喜欢TA的作品,请多多给TA发萝莉色图(
  • p.s.. 也给我发点awwa((

💰 赞助

感谢大家的赞助!你们的赞助将是我继续创作的动力!

  • 爱发电

  • 赞助二维码(点击展开)

    讨饭

📝 更新日志

0.1.2

  • 加入unvcode反和谐,让Bot再色色也不会让勾八tx自动检测~

0.1.1

  • 修复正则错误匹配含有英文的消息而不是英文消息

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_bnhhsh-0.1.2.post1.tar.gz (250.8 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_bnhhsh-0.1.2.post1-py3-none-any.whl (249.7 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