NoneBot 听歌房插件
Project description
NoneBot Plugin Alisten
✨ NoneBot 听歌房插件 ✨
安装
使用 nb-cli 安装:
nb plugin install nonebot-plugin-alisten
使用 pip 安装:
pip install nonebot-plugin-alisten
使用 uv 安装:
uv add nonebot-plugin-alisten
功能特性
- 🎵 支持多音乐平台:网易云音乐、QQ音乐、Bilibili
- 🎯 支持多种搜索方式:歌曲名、BV号、特定平台歌曲名
- 🏠 支持多房间配置,每个群组独立管理
- 🔒 支持房间密码保护
- 👥 用户友好的点歌体验
命令
待插件启动完成后,发送 /music 或 /点歌 可开始点歌。
点歌命令
| 功能 | 命令 | 权限 | 说明 |
|---|---|---|---|
| 普通点歌 | /music <歌曲名> |
所有人 | 使用歌曲名搜索并点歌(默认网易云) |
| 中文点歌 | /点歌 <歌曲名> |
所有人 | 中文别名,功能同上 |
| 指定平台点歌 | /music <平台>:<歌曲信息> |
所有人 | 指定音乐平台进行点歌 |
| B站视频点歌 | /music <BV号> |
所有人 | 使用Bilibili BV号点歌 |
支持的音乐平台:
wy: 网易云音乐qq: QQ音乐db: Bilibili
使用示例:
/music Sagitta luminis # 搜索歌曲名
/点歌 青花瓷 # 使用中文别名
/music BV1Xx411c7md # 使用B站BV号
/music qq:青花瓷 # 指定QQ音乐搜索
/music wy:青花瓷 # 指定网易云搜索
配置命令
| 功能 | 命令 | 权限 | 说明 |
|---|---|---|---|
| 设置配置 | /alisten config set <服务器地址> <房间ID> [房间密码] |
超级用户 | 配置alisten服务器信息 |
| 查看配置 | /alisten config show |
超级用户 | 查看当前群组的配置信息 |
| 删除配置 | /alisten config delete |
超级用户 | 删除当前群组的配置 |
配置示例:
/alisten config set http://localhost:8080 room123 # 无密码房间
/alisten config set http://localhost:8080 room123 password # 有密码房间
/alisten config show # 查看配置
/alisten config delete # 删除配置
使用前准备
-
部署 alisten 服务
需要先部署 alisten 服务端,具体部署方法请参考 alisten 官方文档。
-
配置 alisten 服务
在使用前,需要使用超级用户权限为每个群组配置 alisten 服务信息:
/alisten config set <alisten服务器地址> <房间ID> [房间密码]
-
开始点歌
配置完成后,群成员即可使用点歌命令享受音乐。
依赖说明
本插件依赖以下组件:
开发
环境要求
- Python 3.12+
- NoneBot 2.4.3+
本地开发
-
克隆仓库
git clone https://github.com/bihua-university/nonebot-plugin-alisten.git cd nonebot-plugin-alisten
-
安装依赖
uv sync -
运行测试
uv run poe test
许可证
本项目使用 MIT 许可证开源。
鸣谢
感谢以下开发者作出的贡献:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_alisten-0.2.2.tar.gz.
File metadata
- Download URL: nonebot_plugin_alisten-0.2.2.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1912fb6a405382f236822d8a4f8bb0333fbb09f24c1cfc71c45823356b4de2d
|
|
| MD5 |
9d7f4c08eb2823af279135203cd05c8c
|
|
| BLAKE2b-256 |
dd01eab985a9c07175ac64ed6b878888088f2552669e85736ec8993878ab7211
|
Provenance
The following attestation bundles were made for nonebot_plugin_alisten-0.2.2.tar.gz:
Publisher:
release.yml on bihua-university/nonebot-plugin-alisten
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_alisten-0.2.2.tar.gz -
Subject digest:
a1912fb6a405382f236822d8a4f8bb0333fbb09f24c1cfc71c45823356b4de2d - Sigstore transparency entry: 396269726
- Sigstore integration time:
-
Permalink:
bihua-university/nonebot-plugin-alisten@1fa2cd76421775973cee6d1322964cf151cf0859 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/bihua-university
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1fa2cd76421775973cee6d1322964cf151cf0859 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nonebot_plugin_alisten-0.2.2-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_alisten-0.2.2-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca2a6c960edd4aaac9e292fac45462f9e1308de3cbc8f1d88fc14e2a50bd85e2
|
|
| MD5 |
e4dd284a7cdcd17abf7fe6584e062768
|
|
| BLAKE2b-256 |
b3eea1be10b3e8aef3981a85345085c3f4c29b5deee36511d1aa382de75e3671
|
Provenance
The following attestation bundles were made for nonebot_plugin_alisten-0.2.2-py3-none-any.whl:
Publisher:
release.yml on bihua-university/nonebot-plugin-alisten
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_alisten-0.2.2-py3-none-any.whl -
Subject digest:
ca2a6c960edd4aaac9e292fac45462f9e1308de3cbc8f1d88fc14e2a50bd85e2 - Sigstore transparency entry: 396269765
- Sigstore integration time:
-
Permalink:
bihua-university/nonebot-plugin-alisten@1fa2cd76421775973cee6d1322964cf151cf0859 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/bihua-university
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1fa2cd76421775973cee6d1322964cf151cf0859 -
Trigger Event:
push
-
Statement type: