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.9.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.9-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_dancecube-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 b51bca08a0692d50a29aa07487f5b2c982b5147f2bc89d7c37d160a434bd9220
MD5 4073f8b3ec46d55e63d1b285733c8d55
BLAKE2b-256 57482b302f4cff704213a625139065527deaad8a2e016f8bc53d7ec220215717

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_dancecube-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 52e8dfa39a9b983c44c9c11fe327525c3647292a618716f06afdf831d31ad704
MD5 e04bb4ba0a6270d05e418ee3dcedcba2
BLAKE2b-256 710baa484e3f06b0ee6d4f73c123c02d3c5338c3a2c98a7a2a31c226581ab522

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