use bilibili uid join in group
Project description
nonebot_plugin_BiliRequest
已实现功能
- 以B站UID审核入群(粉丝)
使用方法
- 使用pip
pip install nonebot_plugin_BiliRequest
- 重新加载插件
说明依赖
10| import json, time, requests
11| from nonebot import on_request, logger
12| from nonebot.adapters.onebot.v11 import Bot, GroupRequestEvent
注意事项
20| if event.group_id == <群号>: <- 直接替换成要使用的群号
##| ^^^^^^^
21| raw = json.loads(event.json())
22| gid = str(event.group_id)
23| uid = str(event.user_id)
24| flag = raw['flag']
34| if '<主播UID>' in response: <- 直接替换成主播UID
##| ^^^^^^^^^^
35| logger.info(f"同意{uid}加入群 {gid},验证消息为 “{comment}”")
36| await bot.set_group_add_request(
37| flag=flag,
38| sub_type=sub_type,
39| approve=True,
40| reason=' ',
41| )
未来计划
- Tips:如果在不咕的情况下
- 实现单插件分群管理
- 实现切换审核模式(粉丝/持有粉丝牌/等)
反馈问题
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for nonebot_plugin_BiliRequest-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80fbe176b6d2535e49b4545f1f793b41d42dce45723fc9dcda19517e3d1b99c8 |
|
MD5 | 73b17932ac66059f594a0a77dda12ae8 |
|
BLAKE2b-256 | 0d859b80930841fbcdc628781e84bb4b2f077b9a1f004db35c56416de2cdac4c |