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文件中添加下表中的必填配置

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

🎉 使用

指令表

指令 权限 需要@ 范围 说明
/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]https://raw.githubusercontent.com/1v7w/1v7w-image-bed/main/img220260413193141025.jpg)

/dc song 6354

song 6354

更新历史

v0.1.7

  • 更改配置项
  • 移除templates文件夹的复制

v0.1.6

  • 战绩显示增加战队名、战队职位
  • 战绩显示增加游玩歌曲数目

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.8.tar.gz (21.3 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.8-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_dancecube-0.1.8.tar.gz
  • Upload date:
  • Size: 21.3 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.8.tar.gz
Algorithm Hash digest
SHA256 4c1938235132f755c0e7af672b50aca906083774e8cc9b01cecaefea2e21ea2e
MD5 e2e3c93a0dcefc6a358f178c8b0e225e
BLAKE2b-256 36f3284c07826721543bd9fd10c1c610a5d223f427027939aa54633f59486fc2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_dancecube-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1d03951680ac9240ae16a666a213ac7cc30efe9db6b8a453a7ca717196c7a88c
MD5 c7af17b5ee8019849da2a616dd33d518
BLAKE2b-256 b1f11b6c789428cf68708672de474715d2023a27468cd1d1ada77c45c758ac5a

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