Skip to main content

一个简单的舞立方插件

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-dancecube

✨ 舞立方插件:提供舞立方战力分析等基础功能 ✨

license pypi python

📖 介绍

目前支持二维码/手机号登录、战力分析、战力分析(包含自制谱)、战绩最好的30首ap歌曲(可选官铺、自制谱)、获取指定歌曲id的个人成绩、自动更新官方曲目封面。

💿 安装

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

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

plugins = ["nonebot_plugin_dancecube"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
COVER_UPDATE_CRON 0 3 * * * cron格式;默认每天凌晨3点更新官方曲目封面
SUPERUSERS - 超级用户/管理员,仅超级用户可主动触发更新官方曲目封面
NICKNAME nisky 机器人名字,生成图片底部会展示

🎉 使用

指令表

指令 权限 需要@ 范围 说明
/dc 群员 私聊/群聊 获取指令帮助
/dc login 群员 私聊 登录舞立方账号,交互式选择登录方式
/dc myrt 群员 群聊 获取战力分析
/dc myrtall 群员 群聊 获取战力分析(含自制谱)
/dc ap30 [o/c] 群员 群聊 获取最好的30首AP战绩(默认混合, o官方, c自制)
/dc song [id] 群员 群聊 获取歌曲id为[id]的个人成绩
/dc updatecover 超级用户/管理员 私聊/群聊 更新官方曲目封面

效果图

/dc myrt

myrt

/dc ap30

ap30

/dc song 6354

song 6354

更新历史

v0.1.5

  • ap30允许选择官铺or自制谱。
  • 添加手机号登录功能
  • 修复二维码登录的一些bug

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_dancecube-0.1.5.tar.gz (20.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_dancecube-0.1.5-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_dancecube-0.1.5.tar.gz.

File metadata

  • Download URL: nonebot_plugin_dancecube-0.1.5.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nonebot_plugin_dancecube-0.1.5.tar.gz
Algorithm Hash digest
SHA256 e0e46a79b8ce12d446a7ddc37d21d5dbe476b6fda41fab2ee0e31ca858f1bd76
MD5 e8d17ce026acc1f3458985c09cc6540e
BLAKE2b-256 52e4e9a040ac05b1e2fce73e8d0234adf4f0303b3702899b7b14cd521ee8e0c0

See more details on using hashes here.

File details

Details for the file nonebot_plugin_dancecube-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_dancecube-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 635bc457b1af0b5d410502c082fd207db1b5abb27bc3e6535f122ae831cd5e76
MD5 f9f0631b32cb35b68204cf8bb94e9cbc
BLAKE2b-256 4bad0d5ecf850be79cc696006575ce2054fed16c7586436efe047ff1e616b659

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