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 | 控制会话时长 |
COMMAND_START | 否 | ["/", ""] | 判断消息是否是命令 |
COMMAND_SEP | 否 | ["."] | 命令的分隔标记 |
🎉 使用
指令表
指令 ( 所有 / 均可省略 ) | 权限 | 需要@ | 说明 |
---|---|---|---|
/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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 038f9444b2bfab50f1747900c812deb06b11f6c12f0f6cc57f55715265c78598 |
|
MD5 | 4a7dda45870eccd7eff3c69effe5d002 |
|
BLAKE2b-256 | bc904508bb7c013f063cf9d453cc3bec6db5ef75a805edde9c4f4e39f71f4fe2 |
Close
Hashes for nonebot_plugin_weiweibot-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a380c456a5c5abfa07300b43eee37ed013ff7e0f0ed65be23d7f857005699f9 |
|
MD5 | 198b37b00e1a499725ed2b181a324bd2 |
|
BLAKE2b-256 | 7e22f192b84fd4d2d18bc66260114c6f8b6191b58c68a56df4f1342ba62517ed |