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]https://raw.githubusercontent.com/1v7w/1v7w-image-bed/main/img220260413193141025.jpg)

/dc song 6354

song 6354

更新历史

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_dancecube-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 ea21f5cd747e14d271d4f01b81c832cd714a4aab5dc9b366dc20f166a42aaa46
MD5 8d725adafaffaf451d83057ed7ab9b60
BLAKE2b-256 0589b0ef5bff80c906b4397bd4fc34735777f94e79450f8ef2676a3ff44c5044

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_dancecube-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7988b84dbed0472dc4b2d5d7de3b83fec3419b4d98277b56ff240bd55f3d946b
MD5 f394de232f424d1bbb0856239598d02c
BLAKE2b-256 2a6e765f7cd01d02506aca379925ead24008184106a542c734739f7772bebab9

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