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.24.tar.gz (11.3 MB 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.24-py3-none-any.whl (11.3 MB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_apex_api_query-26.5.24.tar.gz
Algorithm Hash digest
SHA256 a84271f9c43049dbeceee04ba33d8a11d90917ab5d2810879f03d3d80940f4c9
MD5 c3a9a87df138c1190830bd8b387bd51c
BLAKE2b-256 a81259941f072db4b28f425b26edf6466ef1c0e89d62697187af42436cb8b4d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_apex_api_query-26.5.24.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.24-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_apex_api_query-26.5.24-py3-none-any.whl
Algorithm Hash digest
SHA256 2d67784178667a9039616682f1f65069d44793b8424d2e599506b62b50594be8
MD5 da63aec0b20ff565a21bae18a29ac30e
BLAKE2b-256 bf26f520df35ae9f12b11c4a5b199281ca1714deb3774f759f6723c88afe3a40

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_apex_api_query-26.5.24-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