Skip to main content

Apex Legends API 查询插件,支持玩家数据、地图轮换、服务器状态和顶猎分数查询

Project description

NoneBot-Plugin-Apex-API-Query

✨ 基于 NoneBot 的 Apex Legends API 查询插件 ✨

NoneBot Registry

📖 介绍

基于 NoneBot2 的 Apex Legends API 查询插件。

您可以在 此处 申请您自己的 API 密钥。

申请密钥后重新在 此页面 登录 API 密钥以测试密钥是否可用。

必须将此 API 密钥 链接 至您的 Discord 账户后您的 API 密钥才可用。

由于 API 的问题,您只能在查询玩家信息时使用 EA 账户用户名并非 Steam 账户用户名。

数据由 API 提供,本插件仅作 数据获取内容转换, 如有内容错误均来自 API。

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装:
nb plugin install nonebot_plugin_apex_api_query

使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令:
pip
pip install nonebot_plugin_apex_api_query

poetry
poetry add nonebot_plugin_apex_api_query

随后编辑 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_apex_api_query"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

APEX_API_KEY = "你的 API 密钥"

🎉 使用

指令表

apex [玩家名称] [平台] #根据玩家名称查询玩家信息
apex [m|map|地图] #查询地图信息
apex [s|server|服务器] #查询服务器状态
apex [p|predator|顶猎] #查询顶猎分数

🖼️ 效果

玩家信息:
名称: Hx1aoH
UID: 1014411853046
平台: PC
等级: 96 (↑6)
距下一级百分比: 45%
大逃杀分数: 9995 (↑744)
大逃杀段位: 白金 2 (白金 3)
大厅状态: 打开
在线: 否
可加入: 否
群满员: 否
已选传奇: 导线管
当前状态: 离线
状态: Offline

💖 鸣谢

📄 许可证

本项目使用 MIT 许可证开源

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

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_apex_api_query-26.5.23.tar.gz (14.1 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_apex_api_query-26.5.23-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_apex_api_query-26.5.23.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_apex_api_query-26.5.23.tar.gz
Algorithm Hash digest
SHA256 4ba70d48eb4c76f8f4776a9bd507c0afcb9eede4dbb98564dbf00fa63ce981aa
MD5 c87a99b9d88566d741fe0ea1b7f9a21a
BLAKE2b-256 63e772329a6b8887e5acb2889a49c0a1b9fde99e47f00a00e124c779ed6485b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_apex_api_query-26.5.23.tar.gz:

Publisher: publish.yml on H-xiaoH/nonebot-plugin-apex-api-query

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nonebot_plugin_apex_api_query-26.5.23-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_apex_api_query-26.5.23-py3-none-any.whl
Algorithm Hash digest
SHA256 d91b8d863674c1e12000d45d4304a5a10bb555a178a0b61a43ee1fffc7285528
MD5 57e17ff87eca1271386b41287a8c5dbf
BLAKE2b-256 1be796c01c5aa33c47906491568d585bf970f88aebb203ecc2e636b42f3c2b23

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_apex_api_query-26.5.23-py3-none-any.whl:

Publisher: publish.yml on H-xiaoH/nonebot-plugin-apex-api-query

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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