Skip to main content

通过森空岛查询游戏数据

Project description

NoneBotPluginLogo

nonebot-plugin-skland

✨ 通过森空岛查询游戏数据 ✨

license pypi python
pre-commit.ci status NoneBot Registry uv ruff CodeFactor
📸 演示与预览   |   📦️ 下载插件   |   💬 加入交流群

📖 介绍

通过森空岛查询游戏数据

[!NOTE] 本插件存在大量未经验证的数据结构以及💩山

如在使用过程中遇到问题,欢迎提 issue 帮助改进项目

starify
Star History Star History Chart

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-skland
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-skland
pdm
pdm add nonebot-plugin-skland
poetry
poetry add nonebot-plugin-skland
conda
conda install nonebot-plugin-skland

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

plugins = ["nonebot_plugin_skland"]

⚙️ 配置

配置表

在 nonebot2 项目的.env文件中修改配置项

配置项 必填 默认值 说明
skland__github_proxy_url "" GitHub 代理 URL
skland__github_token "" GitHub Token
skland__check_res_update True 是否检查资源更新

[!TIP] 以上配置项均没什么用按需填写,GitHub Token 用于解决 fetch_file_list 接口到达免费调用上限,但不会有那么频繁的更新频率,99.98%的概率是用不上的。只是因为我开发测试的时候上限了,所以有了这项

🎉 使用

[!NOTE] 记得使用命令前缀

🪧 指令表

指令 权限 参数 说明
skland 所有 无 or @ 角色信息卡片
skland bind 所有 token or cred 绑定森空岛账号
skland bind -u 所有 token or cred 更新绑定的 token 或 cred
skland arksign 所有 明日方舟签到
skland arksign -u <uid> 所有 uid 指定绑定角色 UID 进行签到
skland arksign --all 所有 签到所有绑定角色
skland char update 所有 更新森空岛绑定角色信息
skland rogue 所有 @ | topic 肉鸽战绩查询(暂未完成)

🎯 快捷指令

触发词 执行指令
森空岛绑定 skland bind
明日方舟签到 skland arksign
萨卡兹肉鸽 skland rogue --topic 萨卡兹
萨米肉鸽 skland rogue --topic 萨米
角色更新 skland char update

📸 效果图

示例图1

💖 鸣谢

📢 声明

本插件仅供学习交流使用,数据由 森空岛 提供,请勿用于商业用途。

使用过程中,任何涉及个人账号隐私信息(如账号token、cred 等)的数据,请勿提供给不信任的Bot所有者(尤其是token)。

📋 TODO

  • 完善用户接口返回数据解析
  • 使用nonebot-plugin-htmlrender渲染信息卡片
  • yuanyan3060/ArknightsGameResource下载游戏数据、检查数据更新
  • 绘制渲染粥游信息卡片
  • 粥游签到自动化
  • 细化粥游信息卡片的部分信息展示
  • 其余接口获取且有明确 ID 可命名的图片,优先调用本地图片,请求后缓存到本地(例如肉鸽物品获取
  • 完善肉鸽战绩返回信息解析
  • 绘制渲染肉鸽战绩卡片
  • 扬了不必要的 💩
  • 待补充

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_skland-0.1.2.tar.gz (1.5 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_skland-0.1.2-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_skland-0.1.2.tar.gz.

File metadata

  • Download URL: nonebot_plugin_skland-0.1.2.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nonebot_plugin_skland-0.1.2.tar.gz
Algorithm Hash digest
SHA256 578efaff06dd2c94794b9203a6f09da32df42992938eb70e029bc3699b8b8db4
MD5 3c39b2485fd9ab428f27bdc0a72cbeec
BLAKE2b-256 e62536e6abe93270fa1d00c598b5701db170993759abc006a76a74b8e3508524

See more details on using hashes here.

File details

Details for the file nonebot_plugin_skland-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_skland-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bdbcd9b79ae7e096f9f0c598c63bde20c6da5ea612c08b814ae536432bb5b196
MD5 251f007cb00c3282c5ad92018ca2c955
BLAKE2b-256 ddfa62871de1d09256fff3ce6426b279cf8b5b682335c7d69748c3d4c6dbd7ce

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