Skip to main content

KIRAKIRA账号审核入群功能

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-okashi

✨ NoneBot osu!用户审核入群 ✨

license pypi python

📖 介绍

本插件可以实现验证osu!账号是否属实,如果属实即自动批准入群并修改其群名片为申请时输入的id 请在使用时通过管理群->加群方式->需要身份认证中开启需要回答问题并由管理员审核并将bot设为管理员

灵感来自nonebot_plugin_bf1_groptools

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-okashi
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-okashi
pdm
pdm add nonebot-plugin-okashi
poetry
poetry add nonebot-plugin-okashi
conda
conda install nonebot-plugin-okashi

打开 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_okashi-0.1.3.tar.gz (16.4 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_okashi-0.1.3-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_okashi-0.1.3.tar.gz.

File metadata

  • Download URL: nonebot_plugin_okashi-0.1.3.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nonebot_plugin_okashi-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2c115bf17d25963d04a2265884cc624dafc6829dfdf5ac2f65cc0d4f22ec9b9a
MD5 6c6a0692fd73ec97d7ea8dd72dded588
BLAKE2b-256 b49d86ef40d10445ff1ec98de9f0ff4ea740408929f9101722428ecc79413bf3

See more details on using hashes here.

File details

Details for the file nonebot_plugin_okashi-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_okashi-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6f5109316f59e604f104f451227efcc9b4883fdfce4fb2fddd4c9eaf0554c6ea
MD5 5ba5eeed256c580f1f92503fc2383473
BLAKE2b-256 d7fd46f5f2261c98b5a24bfdb6eec1ed8be8a4b63147450fc023ad58c2a0bafd

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