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.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32820b40a0afcfbadfa94055c0da0830623a2985312980db78a253737dba3470 |
|
MD5 | 50e53ffd934fa11caec5986389be097d |
|
BLAKE2b-256 | 6592a1078d80e5ec232ec8cad3e23c15bccfa70e4a7ad8a2ce170e93f8d841f7 |
Close
Hashes for nonebot_plugin_weiweibot-0.1.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a77b25584588670ffaced772bf4590407d10d05e5f4753f72fd3f26444d7855 |
|
MD5 | 7b5595d05034d9f1e55573807afe009e |
|
BLAKE2b-256 | 0578ac5b0d00008ce1a45614d6bf2a092fac516565e8cf7f311863566ab73d50 |