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.21.tar.gz (14.0 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.21-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_apex_api_query-26.5.21.tar.gz
Algorithm Hash digest
SHA256 8330b690dabc2a95aa728a81c1af67dd124a638f99f621faf3f127991dd77eed
MD5 5bd680205487574bdf284aab8eb81f15
BLAKE2b-256 d8d9cb50543bd9ef1b31b69039d226de9febb812a708f1b302d4d4182aa70e77

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for nonebot_plugin_apex_api_query-26.5.21-py3-none-any.whl
Algorithm Hash digest
SHA256 f308bc58a7dc06e88a902072c459e84e275f397ba8217f0935718555cbc185d7
MD5 52f246fa9cfbefc2710ad3954398c7b3
BLAKE2b-256 7ef9278ff0a96aa527004c1210d5621748e62553261c6c0a03c7e0bbda045983

See more details on using hashes here.

Provenance

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