Skip to main content

通过osu!账号审核入群功能

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-osuverify

✨ NoneBot osu!用户审核入群 ✨

license pypi python

📖 介绍

本插件可以实现验证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

申请地址:https://osu.ppy.sh/p/api

填写示例:osu_amd="申请到的api"

🎉 使用

无图,无指令。 如果输入的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

nonebot-plugin-osuverify-0.1.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_osuverify-0.1.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file nonebot-plugin-osuverify-0.1.0.tar.gz.

File metadata

  • Download URL: nonebot-plugin-osuverify-0.1.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for nonebot-plugin-osuverify-0.1.0.tar.gz
Algorithm Hash digest
SHA256 660641e6e481e94f5f8c4ee46487ba2c4ab369e7a4eccce2293e9d6e3bb835d9
MD5 4be1a5062a14e67524ead52fd92b265a
BLAKE2b-256 66845364a35d5acc0a2ade228612f7e2549e9ba81fe9e94dceec59e43200c018

See more details on using hashes here.

File details

Details for the file nonebot_plugin_osuverify-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_osuverify-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce85cb43cbc19c7e2a981d366dd4ae732a5fbf391ab5b1271d2c257fb5fb5b44
MD5 9996829f3a032f9e7f7731e73b14d36f
BLAKE2b-256 d6769dea2d73e01c6c5fd8cd24947398aba239c1e0e1e89f6bf4c4e2dcbca578

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page