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.22.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.22-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.22.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_apex_api_query-26.5.22.tar.gz
Algorithm Hash digest
SHA256 7afcb6b287aef09773bb864a92f38ced180932ef54ada62d458690d459d2bde8
MD5 02b1f3c0e99dc617325c54eea4b01a82
BLAKE2b-256 fe5c26ae07098ccb15330d8434f31764761857e580a09ce625e9808acb7eaf6b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for nonebot_plugin_apex_api_query-26.5.22-py3-none-any.whl
Algorithm Hash digest
SHA256 37e534b527b9fbfe3b1a6f1861d54c0cf70e3bbba6b4ba5adf1dc4cc84236980
MD5 c0b515fb59e70550dfc12e99fcab011b
BLAKE2b-256 4ffaf5100509f4480eecfae884f829e9a9565b4262a8eb202557ab85e1b330c0

See more details on using hashes here.

Provenance

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