通过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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2066fe25e78c6c2fc9da62b5835612f5ae8e5db44bc18738d799f3005688a895 |
|
MD5 | 0237ad17332b64c54a21c9fd53d9370e |
|
BLAKE2b-256 | 0457c98cd2ef532d385bdeb69f87b5127c12fb4c2876fad25a6cf9e5812c92c7 |
Close
Hashes for nonebot_plugin_osuverify-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8ae0da93adec1769a4e3bced05d7195afc4f21bb5d5a696cbdc6f4ceb5d295e |
|
MD5 | b4f8afe9be6bad6c00b5d80536e06b97 |
|
BLAKE2b-256 | e28ff1d2b1469eae8a05245a0d984721d5423467ed042293460f2bbfc60a3bc5 |