<!-- markdownlint-disable MD024 MD026 MD031 MD033 MD036 MD041 MD052 -->
<div align="center">
<img src="https://raw.githubusercontent.com/Agnes4m/nonebot_plugin_l4d2_server/main/image/logo.png" width="180" height="180" alt="NoneBotPluginLogo">
<br>
<p><img src="https://s2.loli.net/2022/06/16/xsVUGRrkbn1ljTD.png" width="240" alt="NoneBotPluginText"></p>
</div>
<div align="center">
# nonebot_plugin_maimai
_✨maimaiDX,nonebot2插件版本✨_
<a href="https://github.com/Umamusume-Agnes-Digital/nonebot_plugin_maimai/stargazers">
<img alt="GitHub stars" src="https://img.shields.io/github/stars/Umamusume-Agnes-Digital/nonebot_plugin_maimai" alt="stars">
</a>
<a href="https://github.com/Umamusume-Agnes-Digital/nonebot_plugin_maimai/issues">
<img alt="GitHub issues" src="https://img.shields.io/github/issues/Umamusume-Agnes-Digital/nonebot_plugin_maimai" alt="issues">
</a>
<a href="https://jq.qq.com/?_wv=1027&k=l82tMuPG">
<img src="https://img.shields.io/badge/QQ%E7%BE%A4-424506063-orange?style=flat-square" alt="QQ Chat Group">
</a>
<img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="python">
<img src="https://img.shields.io/badge/nonebot-2.0.0-red.svg" alt="NoneBot">
</div>
## 说明(已更新图片素材)
从[mai-bot](https://github.com/Diving-Fish/mai-bot)适配nonebot2插件,测试环境nonebot2.1.0
修改部分:
- b40/b50可以艾特人查询
- static文件可以放maimai插件文件夹中,或机器人路径下/data/maimai/static
- (可循)env设置 `maimai_font`,是str对象的`字体`
- 新增指令`搜手元`,`搜理论`,`搜谱面确认`,后面带上搜索的对象
- 新增指令检查mai资源可以初始化下载,或者强制检查mai资源强制下载覆盖
我做的适配有问题请冲我来不要打扰原作者捏,可以提iss或者[加群qq](https://jq.qq.com/?_wv=1027&k=l82tMuPG)反馈,
## env(可选)
maimai_font = 'simsun.ttc' # 替换你有的字体
## 前置步骤(和原项目一样)
安装(仍选其一):
pip3 install nonebot_plugin_maimai
nb plugin install nonebot_plugin_maimai
git clone https://github.com/Agnes4m/nonebot_plugin_maimai.git
您需要从[此链接](https://www.diving-fish.com/maibot/static.zip)下载资源文件并,并将其static文件解压到:(以下方法2选1)
- pypi`nonebot_plugin_maimai`文件夹中 - 最终路径类似是/path/to/nonebot_plugin_maimai/static
- 机器人目录下 - 最终路径类似是/path/to/data/maimai/static中。其中bot.py文件在/path/to位置
> 资源文件仅供学习交流使用,请自觉在下载 24 小时内删除资源文件。
## FAQ
配置 nonebot 或 cq-http 过程中出错?
> 请查阅 <https://github.com/nonebot/nonebot2> 以及 <https://github.com/Mrs4s/go-cqhttp> 中的文档。
部分消息发不出来?
> 被风控了。解决方式:换号或者让这个号保持登陆状态和一定的聊天频率,持续一段时间。
## 说明
本 bot 提供了如下功能:
命令 | 功能
--- | ---
help | 查看帮助文档
今日舞萌 | 查看今天的舞萌运势
XXXmaimaiXXX什么 | 随机一首歌
随个[dx/标准][绿黄红紫白]<难度> | 随机一首指定条件的乐曲
查歌<乐曲标题的一部分> | 查询符合条件的乐曲
[绿黄红紫白]id<歌曲编号> | 查询乐曲信息或谱面信息
定数查歌 <定数> <br> 定数查歌 <定数下限> <定数上限> | 查询定数对应的乐曲
分数线 <难度+歌曲id> <分数线> | 展示歌曲的分数线
搜<手元><理论><谱面确认> | 从b站获取对应的手元视频
## 原作者
[Diving-Fish](https://github.com/Diving-Fish),感谢大佬为音游人的无私奉献
## License
MIT
您可以自由使用本项目的代码用于商业或非商业的用途,但必须附带 MIT 授权协议。
Raw data
{
"_id": null,
"home_page": "https://github.com/Agnes4m/maimai_plugin/tree/nonebot2.0.0",
"name": "nonebot-plugin-maimai",
"maintainer": "",
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": "",
"keywords": "maimai nonebot2 plugin",
"author": "",
"author_email": "Agnes_Digital <Z735803792@163.com>",
"download_url": "https://files.pythonhosted.org/packages/a4/af/fbc203a08483530ba2d029023e93e3bf72295d7636d0841920df6ae62d59/nonebot_plugin_maimai-0.4.4.tar.gz",
"platform": null,
"description": "<!-- markdownlint-disable MD024 MD026 MD031 MD033 MD036 MD041 MD052 -->\n<div align=\"center\">\n <img src=\"https://raw.githubusercontent.com/Agnes4m/nonebot_plugin_l4d2_server/main/image/logo.png\" width=\"180\" height=\"180\" alt=\"NoneBotPluginLogo\">\n <br>\n <p><img src=\"https://s2.loli.net/2022/06/16/xsVUGRrkbn1ljTD.png\" width=\"240\" alt=\"NoneBotPluginText\"></p>\n</div>\n\n<div align=\"center\">\n\n# nonebot_plugin_maimai\n\n_\u2728maimaiDX\uff0cnonebot2\u63d2\u4ef6\u7248\u672c\u2728_\n\n<a href=\"https://github.com/Umamusume-Agnes-Digital/nonebot_plugin_maimai/stargazers\">\n <img alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/Umamusume-Agnes-Digital/nonebot_plugin_maimai\" alt=\"stars\">\n</a>\n<a href=\"https://github.com/Umamusume-Agnes-Digital/nonebot_plugin_maimai/issues\">\n <img alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/Umamusume-Agnes-Digital/nonebot_plugin_maimai\" alt=\"issues\">\n</a>\n<a href=\"https://jq.qq.com/?_wv=1027&k=l82tMuPG\">\n <img src=\"https://img.shields.io/badge/QQ%E7%BE%A4-424506063-orange?style=flat-square\" alt=\"QQ Chat Group\">\n</a>\n <img src=\"https://img.shields.io/badge/python-3.8+-blue.svg\" alt=\"python\">\n <img src=\"https://img.shields.io/badge/nonebot-2.0.0-red.svg\" alt=\"NoneBot\">\n</div>\n\n## \u8bf4\u660e\uff08\u5df2\u66f4\u65b0\u56fe\u7247\u7d20\u6750\uff09\n\n\u4ece[mai-bot](https://github.com/Diving-Fish/mai-bot)\u9002\u914dnonebot2\u63d2\u4ef6\uff0c\u6d4b\u8bd5\u73af\u5883nonebot2.1.0\n\n\u4fee\u6539\u90e8\u5206\uff1a\n\n- b40/b50\u53ef\u4ee5\u827e\u7279\u4eba\u67e5\u8be2\n- static\u6587\u4ef6\u53ef\u4ee5\u653emaimai\u63d2\u4ef6\u6587\u4ef6\u5939\u4e2d\uff0c\u6216\u673a\u5668\u4eba\u8def\u5f84\u4e0b/data/maimai/static\n- \uff08\u53ef\u5faa\uff09env\u8bbe\u7f6e `maimai_font`,\u662fstr\u5bf9\u8c61\u7684`\u5b57\u4f53`\n- \u65b0\u589e\u6307\u4ee4`\u641c\u624b\u5143`,`\u641c\u7406\u8bba`,`\u641c\u8c31\u9762\u786e\u8ba4`\uff0c\u540e\u9762\u5e26\u4e0a\u641c\u7d22\u7684\u5bf9\u8c61\n- \u65b0\u589e\u6307\u4ee4\u68c0\u67e5mai\u8d44\u6e90\u53ef\u4ee5\u521d\u59cb\u5316\u4e0b\u8f7d\uff0c\u6216\u8005\u5f3a\u5236\u68c0\u67e5mai\u8d44\u6e90\u5f3a\u5236\u4e0b\u8f7d\u8986\u76d6\n\n\u6211\u505a\u7684\u9002\u914d\u6709\u95ee\u9898\u8bf7\u51b2\u6211\u6765\u4e0d\u8981\u6253\u6270\u539f\u4f5c\u8005\u634f\uff0c\u53ef\u4ee5\u63d0iss\u6216\u8005[\u52a0\u7fa4qq](https://jq.qq.com/?_wv=1027&k=l82tMuPG)\u53cd\u9988,\n\n## env(\u53ef\u9009)\n\n maimai_font = 'simsun.ttc' # \u66ff\u6362\u4f60\u6709\u7684\u5b57\u4f53\n\n## \u524d\u7f6e\u6b65\u9aa4\uff08\u548c\u539f\u9879\u76ee\u4e00\u6837\uff09\n\n\u5b89\u88c5\uff08\u4ecd\u9009\u5176\u4e00\uff09:\n\n pip3 install nonebot_plugin_maimai\n nb plugin install nonebot_plugin_maimai\n git clone https://github.com/Agnes4m/nonebot_plugin_maimai.git\n\n\u60a8\u9700\u8981\u4ece[\u6b64\u94fe\u63a5](https://www.diving-fish.com/maibot/static.zip)\u4e0b\u8f7d\u8d44\u6e90\u6587\u4ef6\u5e76\uff0c\u5e76\u5c06\u5176static\u6587\u4ef6\u89e3\u538b\u5230:(\u4ee5\u4e0b\u65b9\u6cd52\u90091)\n\n- pypi`nonebot_plugin_maimai`\u6587\u4ef6\u5939\u4e2d - \u6700\u7ec8\u8def\u5f84\u7c7b\u4f3c\u662f/path/to/nonebot_plugin_maimai/static\n- \u673a\u5668\u4eba\u76ee\u5f55\u4e0b - \u6700\u7ec8\u8def\u5f84\u7c7b\u4f3c\u662f/path/to/data/maimai/static\u4e2d\u3002\u5176\u4e2dbot.py\u6587\u4ef6\u5728/path/to\u4f4d\u7f6e\n\n> \u8d44\u6e90\u6587\u4ef6\u4ec5\u4f9b\u5b66\u4e60\u4ea4\u6d41\u4f7f\u7528\uff0c\u8bf7\u81ea\u89c9\u5728\u4e0b\u8f7d 24 \u5c0f\u65f6\u5185\u5220\u9664\u8d44\u6e90\u6587\u4ef6\u3002\n\n## FAQ\n\n\u914d\u7f6e nonebot \u6216 cq-http \u8fc7\u7a0b\u4e2d\u51fa\u9519\uff1f\n> \u8bf7\u67e5\u9605 <https://github.com/nonebot/nonebot2> \u4ee5\u53ca <https://github.com/Mrs4s/go-cqhttp> \u4e2d\u7684\u6587\u6863\u3002\n\n\u90e8\u5206\u6d88\u606f\u53d1\u4e0d\u51fa\u6765\uff1f\n> \u88ab\u98ce\u63a7\u4e86\u3002\u89e3\u51b3\u65b9\u5f0f\uff1a\u6362\u53f7\u6216\u8005\u8ba9\u8fd9\u4e2a\u53f7\u4fdd\u6301\u767b\u9646\u72b6\u6001\u548c\u4e00\u5b9a\u7684\u804a\u5929\u9891\u7387\uff0c\u6301\u7eed\u4e00\u6bb5\u65f6\u95f4\u3002\n\n## \u8bf4\u660e\n\n\u672c bot \u63d0\u4f9b\u4e86\u5982\u4e0b\u529f\u80fd\uff1a\n\n\u547d\u4ee4 | \u529f\u80fd\n--- | ---\nhelp | \u67e5\u770b\u5e2e\u52a9\u6587\u6863\n\u4eca\u65e5\u821e\u840c | \u67e5\u770b\u4eca\u5929\u7684\u821e\u840c\u8fd0\u52bf\nXXXmaimaiXXX\u4ec0\u4e48 | \u968f\u673a\u4e00\u9996\u6b4c\n\u968f\u4e2a[dx/\u6807\u51c6][\u7eff\u9ec4\u7ea2\u7d2b\u767d]<\u96be\u5ea6> | \u968f\u673a\u4e00\u9996\u6307\u5b9a\u6761\u4ef6\u7684\u4e50\u66f2\n\u67e5\u6b4c<\u4e50\u66f2\u6807\u9898\u7684\u4e00\u90e8\u5206> | \u67e5\u8be2\u7b26\u5408\u6761\u4ef6\u7684\u4e50\u66f2\n[\u7eff\u9ec4\u7ea2\u7d2b\u767d]id<\u6b4c\u66f2\u7f16\u53f7> | \u67e5\u8be2\u4e50\u66f2\u4fe1\u606f\u6216\u8c31\u9762\u4fe1\u606f\n\u5b9a\u6570\u67e5\u6b4c <\u5b9a\u6570> <br> \u5b9a\u6570\u67e5\u6b4c <\u5b9a\u6570\u4e0b\u9650> <\u5b9a\u6570\u4e0a\u9650> | \u67e5\u8be2\u5b9a\u6570\u5bf9\u5e94\u7684\u4e50\u66f2\n\u5206\u6570\u7ebf <\u96be\u5ea6+\u6b4c\u66f2id> <\u5206\u6570\u7ebf> | \u5c55\u793a\u6b4c\u66f2\u7684\u5206\u6570\u7ebf\n\u641c<\u624b\u5143><\u7406\u8bba><\u8c31\u9762\u786e\u8ba4> | \u4eceb\u7ad9\u83b7\u53d6\u5bf9\u5e94\u7684\u624b\u5143\u89c6\u9891\n\n## \u539f\u4f5c\u8005\n\n[Diving-Fish](https://github.com/Diving-Fish),\u611f\u8c22\u5927\u4f6c\u4e3a\u97f3\u6e38\u4eba\u7684\u65e0\u79c1\u5949\u732e\n\n## License\n\nMIT\n\n\u60a8\u53ef\u4ee5\u81ea\u7531\u4f7f\u7528\u672c\u9879\u76ee\u7684\u4ee3\u7801\u7528\u4e8e\u5546\u4e1a\u6216\u975e\u5546\u4e1a\u7684\u7528\u9014\uff0c\u4f46\u5fc5\u987b\u9644\u5e26 MIT \u6388\u6743\u534f\u8bae\u3002\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Maimai DX plugin for NoneBot",
"version": "0.4.4",
"project_urls": {
"Homepage": "https://github.com/Agnes4m/maimai_plugin/tree/nonebot2.0.0"
},
"split_keywords": [
"maimai",
"nonebot2",
"plugin"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e892cf1546c40e6f16b32e51f746290961ff48db421df49d1111b7ec4567db86",
"md5": "7f6d21ede81dd6b0b5ddb162776605db",
"sha256": "f0a53aad53a88e9df907fc1b9e812209fe929d0232eee548ad6c4c7d29218e67"
},
"downloads": -1,
"filename": "nonebot_plugin_maimai-0.4.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7f6d21ede81dd6b0b5ddb162776605db",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 28689,
"upload_time": "2023-10-27T00:30:32",
"upload_time_iso_8601": "2023-10-27T00:30:32.210194Z",
"url": "https://files.pythonhosted.org/packages/e8/92/cf1546c40e6f16b32e51f746290961ff48db421df49d1111b7ec4567db86/nonebot_plugin_maimai-0.4.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a4affbc203a08483530ba2d029023e93e3bf72295d7636d0841920df6ae62d59",
"md5": "90c1f5634f8409ee3c68d993186f8cfb",
"sha256": "b62204fb2a0092cb8fb280b38c2e3cf3bef9dfc44f5977bcf096060ef52902e7"
},
"downloads": -1,
"filename": "nonebot_plugin_maimai-0.4.4.tar.gz",
"has_sig": false,
"md5_digest": "90c1f5634f8409ee3c68d993186f8cfb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 23743,
"upload_time": "2023-10-27T00:30:33",
"upload_time_iso_8601": "2023-10-27T00:30:33.954864Z",
"url": "https://files.pythonhosted.org/packages/a4/af/fbc203a08483530ba2d029023e93e3bf72295d7636d0841920df6ae62d59/nonebot_plugin_maimai-0.4.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-27 00:30:33",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Agnes4m",
"github_project": "maimai_plugin",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "nonebot-plugin-maimai"
}