{"id":39832090,"url":"https://github.com/chrysoljq/nonebot-plugin-mcmod","last_synced_at":"2026-01-18T13:15:25.897Z","repository":{"id":287419074,"uuid":"964669925","full_name":"chrysoljq/nonebot-plugin-mcmod","owner":"chrysoljq","description":"通过 https://www.mcmod.cn 获取模组、整合包、教程等信息","archived":false,"fork":false,"pushed_at":"2025-05-11T05:12:45.000Z","size":375,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T01:34:29.661Z","etag":null,"topics":["mcmod","minecraft"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrysoljq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-11T15:35:21.000Z","updated_at":"2025-09-18T09:37:04.000Z","dependencies_parsed_at":"2025-04-11T17:05:22.400Z","dependency_job_id":null,"html_url":"https://github.com/chrysoljq/nonebot-plugin-mcmod","commit_stats":null,"previous_names":["chrysoljq/nonebot-plugin-mcmod"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/chrysoljq/nonebot-plugin-mcmod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrysoljq%2Fnonebot-plugin-mcmod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrysoljq%2Fnonebot-plugin-mcmod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrysoljq%2Fnonebot-plugin-mcmod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrysoljq%2Fnonebot-plugin-mcmod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrysoljq","download_url":"https://codeload.github.com/chrysoljq/nonebot-plugin-mcmod/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrysoljq%2Fnonebot-plugin-mcmod/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28536750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T13:04:05.990Z","status":"ssl_error","status_checked_at":"2026-01-18T13:01:44.092Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mcmod","minecraft"],"created_at":"2026-01-18T13:15:25.754Z","updated_at":"2026-01-18T13:15:25.892Z","avatar_url":"https://github.com/chrysoljq.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e nonebot-plugin-mcmod \u003c/h1\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"https://github.com/chrysoljq/nonebot-plugin-mcmod\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/github/license/chrysoljq/nonebot-plugin-mcmod\" alt=\"LICENSE\"\u003e\r\n  \u003c/a\u003e\r\n  \u003ca href=\"https://pypi.python.org/pypi/nonebot_plugin_mcmod\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/pypi/v/nonebot_plugin_mcmod\" alt=\"PyPI\"\u003e\r\n  \u003c/a\u003e\r\n  \u003cimg src=\"https://img.shields.io/badge/python-3.9+-blue.svg\" alt=\"Python\"\u003e\r\n  \u003ca href=\"https://github.com/nonebot/nonebot2\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/nonebot2-2.3.0+-red\" alt=\"NoneBot\"\u003e\r\n  \u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n  基于 NoneBot2 的 模组百科 (MCMOD) 查询插件\r\n\u003c/p\u003e\r\n\r\n## 📖 介绍\r\n\r\n一个简单的 NoneBot2 插件，用于在 https://www.mcmod.cn (我的世界百科) 搜索模组、整合包、教程和资料等信息。\r\n\r\n通过指令在 QQ 群从查询 Minecraft 中文模组百科相关内容。以转发消息的形式展示搜索信息，目前支持搜索、标题、正文文本和图片内容获取。\r\n\r\n![示例](img/image.png)\r\n\r\n## 💿 安装\r\n**使用 git:**\r\n```bash\r\ngit clone https://github.com/chrysoljq/nonebot-plugin-mcmod\r\n```\r\n然后将 `nonebot-plugin-mcmod/nonebot_plugin_mcmod` 复制到你的插件目录下。\r\n\r\n**使用 pip:**\r\n\r\n```bash\r\npip install nonebot_plugin_mcmod\r\n```\r\n\r\n**使用 nb-cli:**\r\n\r\n```bash\r\nnb plugin install nonebot_plugin_mcmod\r\n```\r\n\r\n安装后，请在你的 `bot.py` 或 `pyproject.toml` 中加载插件：\r\n\r\n```python\r\n# bot.py\r\nnonebot.load_plugin(\"nonebot_plugin_mcmod\")\r\n```\r\n\r\n```toml\r\n# pyproject.toml\r\n[tool.nonebot]\r\nplugins = [\"nonebot_plugin_mcmod\"]\r\n```\r\n\r\n## 🚀 使用\r\n\r\n**指令格式:**\r\n\r\n```\r\n#百科[分类] \u003c关键词\u003e [序号]\r\n```\r\n若无序号，则会等待用户下一次数字输入\r\n\r\n**参数说明:**\r\n\r\n  * `[分类]`: 可选参数，用于指定搜索范围。可选值为 `整合包`, `模组`, `教程`, `资料`。如果省略，则在所有分类中搜索。\r\n  * `\u003c关键词\u003e`: 必填参数，你要搜索的内容。可以包含空格。\r\n  * `[序号]`: 可选参数，当搜索结果多于一个时，可以通过序号选择查看特定结果的详细信息（序号从 1 开始）。\r\n\r\n**示例:**\r\n\r\n  * `#百科模组 工业` - 搜索分类为“模组”，关键词为“工业”的内容。\r\n  * `#百科整合包 石头世界` - 搜索分类为“整合包”，关键词为“石头世界”的内容。\r\n  * `#百科 巫妖 恐怖生物` - 在所有分类中搜索关键词为“巫妖 恐怖生物”的内容。\r\n  * `#百科 暮色森林 2` - 查看“暮色森林”搜索结果中的第 2 条详细信息。\r\n\r\n## 📝 TODO\r\n\r\n  * [x] 获取整合包/模组支持的 Minecraft 版本信息。\r\n  * [x] 完善搜索结果中的图片爬取与展示。\r\n  * [ ] 增加配置项，例如结果数量限制等。\r\n  * [ ] 为对话流程添加超时机制\r\n  * [ ] 控制消息长度\r\n\r\n## 🙏 致谢\r\n\r\n  * [mcmod.cn](https://www.mcmod.cn/) - 提供数据来源。\r\n  * [nonebot2](https://github.com/nonebot/nonebot2) - 插件开发框架。\r\n  * [Gemini](https://gemini.google.com/app) - 代码助手，大大加快开发流程。\r\n  * [limbang/mirai-console-mcmod-plugin](https://github.com/limbang/mirai-console-mcmod-plugin) - 提供灵感来源。\r\n\r\n## 📄 开源许可\r\n\r\n本项目使用 [MIT License](https://www.google.com/search?q=LICENSE) 开源。\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrysoljq%2Fnonebot-plugin-mcmod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrysoljq%2Fnonebot-plugin-mcmod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrysoljq%2Fnonebot-plugin-mcmod/lists"}