Metadata-Version: 2.1
Name: nonebot_plugin_md
Version: 0.2.0
Summary: muse dash for nonebot2
Keywords: md,nonebot2,plugin
Author-Email: Agnes Digital <Z735803792@163.com>
License: AGPL-3.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Operating System :: OS Independent
Project-URL: homepage, https://github.com/Agnes4m/nonebot_plugin_md
Requires-Python: >=3.9
Requires-Dist: nonebot2>=2.1.1
Requires-Dist: nonebot-plugin-alconna>=0.58.5
Requires-Dist: nonebot_plugin_htmlrender>=0.6.3
Requires-Dist: aiohttp>=3.8.1
Requires-Dist: fuzzywuzzy>=0.18.0
Requires-Dist: lxml>=4.9.1
Requires-Dist: aiofiles>=24.1.0
Description-Content-Type: text/markdown

<!-- markdownlint-disable MD026 MD031 MD033 MD036 MD041 MD046 MD047 MD051 -->
<div align="center">
  <img src="./img/logo.png" width="180" height="180"  alt="AgnesDigitalLogo">
  <br>
  <p><img src="https://s2.loli.net/2022/06/16/xsVUGRrkbn1ljTD.png" width="240" alt="NoneBotPluginText"></p>
</div>

<div align="center">

# nonebot_plugin_md

_✨游戏慕斯快跑(muse dash)查询✨_


<img src="https://img.shields.io/badge/python-3.9+-blue?logo=python&logoColor=edb641" alt="python">
<a href ="LICENSE"> 
<img src="https://img.shields.io/github/license/Agnes4m/nonebot_plugin_md">
</a>
<img src="https://img.shields.io/badge/nonebot-2.1.0+-red.svg" alt="NoneBot">
<a href="https://pypi.python.org/pypi/nonebot_plugin_md">
<img src="https://img.shields.io/pypi/v/nonebot_plugin_md?logo=python&logoColor=edb641" alt="python">
</a>
</br>
  <a href="https://github.com/astral-sh/ruff">
    <img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json" alt="ruff">
  </a>
  <a href="https://github.com/psf/black">
    <img src="https://img.shields.io/badge/code%20style-black-000000.svg?logo=python&logoColor=edb641" alt="black">
  </a>

<img src="https://img.shields.io/badge/alconna-0.58.3+-red.svg" alt="NoneBot">    

</br>
<a href="http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=0u2VnosCsDG05IPlQ4SvhCTVLpWqyEqZ&authKey=zEfR1qR358aH4bksKXMwns3nNd1r395ignXLDExp2xG8ENaIzgrAd6%2FRRAo%2B8QR2&noverify=0&group_code=424506063">
        <img src="https://img.shields.io/badge/QQ%E7%BE%A4-424506063-orange?style=flat-square" alt="QQ Chat Group">
</a>

</div>

## 说明

使用从MuseDash.moe摸来的数据及api开发的喵斯查分bot，可以实现绑定qq和md账号、查询b30、查询曲目信息、查询难度排行等功能

### 截图展示

![b30](./img/QQ20250702-113730.png)

## 主要功能

- 1. 初始化 发送`md update`
- 2. 绑定 发送`md bindname xxx` 或者 `md binduid xxx`
- 3. b30

## 使用

```base
/md help呼出此菜单
/md b30:查询当前qq绑定账号b30
/md update:更新曲库及难度表，首次使用需要更新
/md binduid uid:使用指定uid与当前qq进行绑定\n"

/md bindname 名字:使用指定名字账号与当前qq进行绑定，搜索结果不唯一时无法绑定
/md unbind:解除当前qq账号绑定
/md b30name 名字:查询指定名字账号b30，搜索结果不唯一时返回第一个结果
/md dif 等级:查询指定等级难度排行
/md song 曲目名称:查询指定歌曲信息，支持模糊匹配
```

## 配置(env)

```env
# 启用b30快捷指令
is_b30=true
```


## 安装

以下提到的方法 任选**其一** 即可

<details open>
<summary>[推荐] 使用 nb-cli 安装</summary>
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装

```bash
nb plugin install nonebot_plugin_md
```

</details>

<details>
<summary>使用包管理器安装</summary>
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令

<details>
<summary>pip</summary>

```bash
pip install nonebot-plugin-md
```

</details>
<details>
<summary>pdm</summary>

```bash
pdm add nonebot-plugin-md
```

</details>
<details>
<summary>poetry</summary>

```bash
poetry add nonebot-plugin-md
```

</details>
<details>
<summary>conda</summary>

```bash
conda install nonebot-plugin-md
```

</details>
</details>

## 其他

- 本项目原因是几乎找不到开源的md查询插件，因此自己做个开源的，欢迎大佬提iss和pr
- 如果本插件对你有帮助，不要忘了点个Star~
- 本项目仅供学习使用，请勿用于商业用途
- [更新日志](./docs/update.md)
- [AGPL-3.0 License](https://github.com/Agnes4m/nonebot_plugin_md/blob/main/LICENSE) ©[@Agnes4m](https://github.com/Agnes4m)

## 🌐 感谢

- [MDbot](https://github.com/Doctorade/MDBot)- 源代码来源
