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.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30eba3721d0f4415a1850f7af9f5f7e954bf29a0248b1a05094b5b6ad51ed847 |
|
MD5 | 1e4934e900e935ee81d2604386af5a6f |
|
BLAKE2b-256 | fbcbc8ba5da15e8e1634c75f76e492a443db87d1aab375c95f0018540232c2f0 |
Close
Hashes for nonebot_plugin_weiweibot-0.1.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db14ef8a1664f2998a7abd700e5a2b5bec90c4e9f9891e2865f7f229aa2fe114 |
|
MD5 | 13957101a56a458c415c44dde037e208 |
|
BLAKE2b-256 | dcb955ade6db226fea61a405c5af15f3393a19d9be943b61316b1c60b134e3d3 |