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 提供,本插件仅作 数据获取 和 内容转换 。

💿 安装

使用 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|顶猎] #查询顶猎分数

💖 鸣谢

📄 许可证

本项目使用 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.19.tar.gz (11.5 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.19-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_apex_api_query-26.5.19.tar.gz
Algorithm Hash digest
SHA256 f7b54bf9a9417564242054cdd8fdb4be612e1bec6a91d900e58571a11b4ae803
MD5 fd28be0cd86d22c48c276964bd613dc0
BLAKE2b-256 7d779dcee943b16916ff16b080302260d0fd4fc098200215de8174cacc4c82a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_apex_api_query-26.5.19-py3-none-any.whl
Algorithm Hash digest
SHA256 e067e20bb027de9f5c8187df1b65bb5ebacccbbc21c7ba1246c898bf9e308b95
MD5 9af8b1478c437badb1f11d3449e61466
BLAKE2b-256 3fd1e6ad096a89789301a6b9ea334f1f27bb0986d0613c4a6309668cfbfd5292

See more details on using hashes here.

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