📖 介绍
本插件可以实现验证osu!账号是否属实,如果属实即自动批准入群并修改其群名片为申请时输入的id
请在使用时通过管理群->加群方式->需要身份认证中开启需要回答问题并由管理员审核并将bot设为管理员
灵感来自nonebot_plugin_bf1_groptools
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-osuverify
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-osuverify
pdm
pdm add nonebot-plugin-osuverify
poetry
poetry add nonebot-plugin-osuverify
conda
conda install nonebot-plugin-osuverify
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_osuverify"]
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| osu_amd | 是 | 无 | 填入osu!官网申请的apiV1 |
填写示例:osu_amd="申请到的api"
🎉 使用
无图,无指令。 如果输入的osu!用户名官网查无此人,bot会拒绝,并提示用户输入正确的用户名。
如果验证通过,bot会自动修改用户的Q群备注为osu!用户名。
Release files for nonebot-plugin-osuverify 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonebot_plugin_osuverify-0.1.3.tar.gz | 15.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_osuverify-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.4 kB
Release files / nonebot_plugin_osuverify-0.1.3.tar.gz
| Download URL | nonebot_plugin_osuverify-0.1.3.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38f77cdf7aab1aaf595d0052dd388e71d2afb30b8cabc1efc7dc51b43126d470
|
|
BLAKE2b-256 checksum How to use checksums |
59f71de5dcc7e1ee7e1f8f459be33776d950cd7f85a312d18f1e043979661966
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Release files / nonebot_plugin_osuverify-0.1.3-py3-none-any.whl
| Download URL | nonebot_plugin_osuverify-0.1.3-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ec68f3966303b2638bc5232fdd8cc4917b05ef74bc16664fed593437ee4fd10
|
|
BLAKE2b-256 checksum How to use checksums |
e87563e86978f276c4d55e64233fe6ff06b6fed0666d175b176f022e32e566c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|