nonebot-plugin-roblox-search
NoneBot2 Roblox 全功能查询插件,基于系统curl请求,无需aiohttp,低环境依赖
功能清单
/菜单:查看全部指令(图片形式)/用户名搜索 [用户名]:通过用户名查询用户完整资料、头像、虚拟形象/用户ID搜索 [数字ID]:直接UID查询用户,包含头像和虚拟形象/群组名搜索 [群组名]:模糊搜索群组并展示详情/群组ID搜索 [数字ID]:群组ID精准查询、职位列表/游戏名搜索 [游戏名]:搜索游戏、在线人数、访问量/游戏ID搜索 [数字ID]:游戏详情+公开服务器列表/获取好友列表 [用户ID]:读取用户前10位好友/获取粉丝列表 [用户ID]:读取前10位粉丝/获取关注列表 [用户ID]:读取前10位关注
特性
- 使用系统curl异步调用,规避服务器Python环境冲突
- 多层异常捕获,单个接口失效不崩溃整条查询
- 自动截断超长文本,适配QQ消息长度限制
- 自带查询耗时日志,方便排错
- 兼容Linux/Windows/Mac(需系统内置curl)
- 自动检测系统中文字体,无需手动安装
- 菜单以精美图片形式展示
- 用户查询自动获取头像和虚拟形象
前置依赖
- Python >=3.10
- NoneBot2 + OneBot V11适配器
- 系统安装curl(Linux默认自带,Windows需安装Git Bash或单独curl)
安装方式
使用nb-cli安装(推荐)
nb plugin install nonebot-plugin-roblox-search
使用pip安装
pip install nonebot-plugin-roblox-search
使用说明
安装后,发送 /菜单 即可查看所有可用指令。
白名单功能
插件支持群号白名单功能,只有在白名单中的群才能使用查询功能。
配置方法
在 .env、.env.dev 或 .env.prod 文件中添加如下配置:
SEARCHWHITE=["群号1","群号2","群号3"]
示例:
SEARCHWHITE=["123456789","987654321"]
功能逻辑
| 场景 | 结果 |
|---|---|
| 群号在白名单中 | 开放所有查询功能 |
| 群号不在白名单中 | 仅 /菜单 功能可用,其他功能提示未授权 |
| 未配置白名单 | 日志显示错误信息,所有查询功能禁用 |
未授权提示
当群未在白名单中时,使用查询功能会收到以下提示:
此群未获得账号所有者的允许,未开放此群白名单,暂时不开使用,请联系账号所有者
输出效果
用户查询会同时显示:
- 用户头像(Headshot)
- 用户虚拟形象(Avatar)
- 用户详细信息(文字)
Metadata
Release files for nonebot-plugin-roblox-search 1.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_roblox_search-1.3.5.tar.gz | 15.6 kB | Without provenance | Details for nonebot_plugin_roblox_search-1.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_roblox_search-1.3.5-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_roblox_search-1.3.5-py3-none-any.whl |
Total release size: 43.7 kB
Release files / nonebot_plugin_roblox_search-1.3.5.tar.gz
| Download URL | nonebot_plugin_roblox_search-1.3.5.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97124622fe6dbc42817f34287c5b34aafdab85d895a3c815d94cda5bfa5c4f15
|
|
BLAKE2b-256 checksum How to use checksums |
a833fe86ebb2a9ab82d4336316229086904295e4bd8a723943bc614d6cc5713d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / nonebot_plugin_roblox_search-1.3.5-py3-none-any.whl
| Download URL | nonebot_plugin_roblox_search-1.3.5-py3-none-any.whl |
|---|---|
| Size | 28.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
607226622066a0423bd8fa715c26dbb872cc89f5c7b32208135d20ddd44cf3f8
|
|
BLAKE2b-256 checksum How to use checksums |
f7383e39ab2e5ad07eaeb7c1095fc502dbb9c4fc9b33686670a18c5edd0dcd85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for nonebot-plugin-roblox-search 1.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.