通过osu!账号审核入群功能
Project description
📖 介绍
本插件可以实现验证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"
请在使用时通过管理群->加群方式->需要身份认证中开启需要回答问题并由管理员审核并将bot设为管理员
🎉 使用
无图,无指令。 如果输入的osu!用户名官网查无此人,bot会拒绝,并提示用户输入正确的用户名。
如果验证通过,bot会自动修改用户的Q群备注为osu!用户名。
Project details
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-osuverify-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b214335f39a88b7cb6f77a0c1b52f0bdd7157f292a31ceaaa55f52945eec7bb |
|
MD5 | 1f2d5fd4a67f99c0fe6c917bf61d6cd6 |
|
BLAKE2b-256 | b156b5e5d1c328956a968ef73a4910b0302db3ca426cd18cb87182586055c96a |
Close
Hashes for nonebot_plugin_osuverify-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0493843b093bdbaf9eb64cd0800814d826fd6504d89c3eab9e875f1947434c5d |
|
MD5 | 11ba43b7089946f952bcf36b858e7374 |
|
BLAKE2b-256 | a17fe02970add97d6b53336bd657f0f224c96bd176d7660405765f6419a55a38 |