Giter VIP home page Giter VIP logo

nonebot-plugin-bnhhsh's Introduction

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-bnhhsh

✨ 「不能好好说话!」 ✨

license pypi python pypi download

nonebot-plugin-rimofun 已代替本插件功能,本插件将不再维护

📖 介绍

今晚看到莉沫酱的一个奇奇怪怪的项目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 --recursive

打开 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
邮箱:[email protected]

💡 鸣谢

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

💰 赞助

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

  • 爱发电

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

    讨饭

📝 更新日志

0.1.2

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

0.1.1

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

nonebot-plugin-bnhhsh's People

Contributors

lgc2333 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

nonebot-plugin-bnhhsh's Issues

关于插件安装方法的更正建议

建议将“安装”说明中,“从github安装”的指令从:
git clone https://github.com/lgc2333/nonebot-plugin-bnhhsh.git
改为:
git clone https://github.com/lgc2333/nonebot-plugin-bnhhsh.git --recursive
经测试,不带“--recursive”的clone和直接下载源码zip或release,都不能正常取得RimoChan佬的源码引用,造成真寻一类bot不能运行此插件。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.