a simple weiwei bot
Project description
📖 介绍
一个快速查找维维老师语录的机器人
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-weiweibot
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-weiweibot
pdm
pdm add nonebot-plugin-weiweibot
poetry
poetry add nonebot-plugin-weiweibot
conda
conda install nonebot-plugin-weiweibot
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot_plugin_weiweibot"]
⚙️ 配置
在 nonebot2 项目的.env
文件中添加下表中的必填配置
配置项 | 必填 | 默认值 | 说明 |
---|---|---|---|
SESSION_EXPIRE_TIMEOUT | 否 | PT30S | 控制会话时长 |
🎉 使用
指令表
指令 ( 所有 / 均可省略 ) | 权限 | 需要@ | 说明 |
---|---|---|---|
/help | 黑名单外所有人 | 否 | 帮助说明 |
/vv | 黑名单外所有人 | 否 | 输入任意关键字, 返回匹配的随机图片 |
/d | 黑名单外所有人 | 否 | 精确搜索, 输入关键字, 返回匹配的图片列表或唯一图片 |
/r | 黑名单外所有人 | 否 | 无需参数, 返回随机图片 |
/f | 黑名单外所有人 | 否 | 模糊搜索, 输入关键字, 返回最可能匹配的图片 |
/upload | 黑名单外所有人 | 否 | 上传图片 |
/image_recognition | 管理员 | 否 | 对群友上传的图片进行文字识别 |
/add | 管理员 | 否 | 将群友加入黑名单 |
/remove | 管理员 | 否 | 将群友移出黑名单 |
效果图
仅展示群内互动功能
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_weiweibot-0.1.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60d9752b9b948ac3f577c3fd536f6f0f13612ec64acdf0440700204a3f27b413 |
|
MD5 | 6f5f66c5bd19d109021d3945a10a6a32 |
|
BLAKE2b-256 | 37cd1e7a93d5dfa7fc71fbe68bde337e3da0ad7be195904b50de347145bb3963 |
Close
Hashes for nonebot_plugin_weiweibot-0.1.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55bcdd3b41b228a9a34517864cee63fe91b738266d5537df81ecc0e7c3dd49bd |
|
MD5 | c9ef783950ce3c7981ca72f94013ff9c |
|
BLAKE2b-256 | e9e702a17fe1dedfe72342994913d80ced125a6b47264bbfb7ea49cd4fb2bd02 |