Se-se!
Project description
📖 介绍
今晚看到莉沫酱的一个奇奇怪怪的项目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
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
Built Distribution
Close
Hashes for nonebot_plugin_bnhhsh-0.1.2.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9514da51aa4d2560d9e7f3d6c489a1a8146027a693066ad0b751812a81e59860 |
|
MD5 | 55075759002271604b336e568b6c9a0b |
|
BLAKE2b-256 | f5ad9135520fa967feb382411bbead3e4a22cfd65001bad1301d72e1ff55aa49 |
Close
Hashes for nonebot_plugin_bnhhsh-0.1.2.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42bd6e0b3c758860d2cf7fb32300e8ddfc6d8f08d218a23aa71d61c602b89f46 |
|
MD5 | 1c4106e239759f82e7d9dee645620f05 |
|
BLAKE2b-256 | d83ee994aae87d22fed895333b1245a52e32d07e1b04039b72856c67cb62bc42 |