{"id":22047153,"url":"https://github.com/monsterxcn/nonebot_plugin_epicfree","last_synced_at":"2025-05-08T19:46:00.943Z","repository":{"id":40543188,"uuid":"396743837","full_name":"monsterxcn/nonebot_plugin_epicfree","owner":"monsterxcn","description":"🤖 NoneBot2 EpicGameStore 喜加一资讯插件，发送「喜加一」逝世看吧！","archived":false,"fork":false,"pushed_at":"2023-10-30T07:55:44.000Z","size":79,"stargazers_count":57,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T00:53:14.238Z","etag":null,"topics":["epic-games","python","qqbot"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/nonebot-plugin-epicfree/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monsterxcn.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}},"created_at":"2021-08-16T10:34:15.000Z","updated_at":"2025-01-03T07:54:29.000Z","dependencies_parsed_at":"2024-12-01T16:50:38.766Z","dependency_job_id":null,"html_url":"https://github.com/monsterxcn/nonebot_plugin_epicfree","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.04347826086956519,"last_synced_commit":"5c889d3c9fd1cf83f2939233e5ead4e943e3495d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monsterxcn%2Fnonebot_plugin_epicfree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monsterxcn%2Fnonebot_plugin_epicfree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monsterxcn%2Fnonebot_plugin_epicfree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monsterxcn%2Fnonebot_plugin_epicfree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monsterxcn","download_url":"https://codeload.github.com/monsterxcn/nonebot_plugin_epicfree/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253140069,"owners_count":21860493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["epic-games","python","qqbot"],"created_at":"2024-11-30T13:25:29.139Z","updated_at":"2025-05-08T19:46:00.886Z","avatar_url":"https://github.com/monsterxcn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eNoneBot Plugin EpicFree\u003c/h1\u003e\u003c/br\u003e\n\n\n\u003cp align=\"center\"\u003e🤖 用于获取 Epic 限免游戏资讯的 NoneBot2 插件\u003c/p\u003e\u003c/br\u003e\n\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/monsterxcn/nonebot_plugin_epicfree/actions\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/monsterxcn/nonebot_plugin_epicfree/publish.yml?branch=main\u0026style=flat-square\" alt=\"actions\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://raw.githubusercontent.com/monsterxcn/nonebot_plugin_epicfree/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/monsterxcn/nonebot_plugin_epicfree?style=flat-square\" alt=\"license\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pypi.python.org/pypi/nonebot_plugin_epicfree\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/nonebot_plugin_epicfree?style=flat-square\" alt=\"pypi\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/python-3.8+-blue?style=flat-square\" alt=\"python\"\u003e\u003cbr /\u003e\n\u003c/p\u003e\u003c/br\u003e\n\n\n**安装方法**\n\n\n使用以下命令之一快速安装（若配置了 PyPI 镜像，你可能无法及时检索到插件最新版本）：\n\n\n``` zsh\nnb plugin install nonebot_plugin_epicfree\n\npip install --upgrade nonebot_plugin_epicfree\n```\n\n\n重启 Bot 即可体验此插件。\n\n\n\u003cdetails\u003e\u003csummary\u003e\u003ci\u003e关于 NoneBot2 及相关依赖版本\u003c/i\u003e\u003c/summary\u003e\u003c/br\u003e\n\n\n在已淘汰的 NoneBot2 适配器 [nonebot-adapter-cqhttp](https://pypi.org/project/nonebot-adapter-cqhttp/) 下，切记不要使用 `pip` 或 `nb_cli` 安装此插件。通过拷贝文件夹 `nonebot_plugin_epicfree` 至 NoneBot2 插件目录、手动安装 `nonebot-plugin-apscheduler` 和 `httpx` 依赖的方式仍可正常启用此插件。在未来某个版本会完全移除该适配器支持，请尽快升级至 [nonebot-adapter-onebot](https://pypi.org/project/nonebot-adapter-onebot/)。\n\n\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\u003csummary\u003e\u003ci\u003e关于 go-cqhttp 版本\u003c/i\u003e\u003c/summary\u003e\u003c/br\u003e\n\n\n插件发送消息依赖 [@Mrs4s/go-cqhttp](https://github.com/Mrs4s/go-cqhttp) 的合并转发接口，如需启用私聊响应请务必安装 [v1.0.0-rc2](https://github.com/Mrs4s/go-cqhttp/releases/tag/v1.0.0-rc2) 以上版本的 go-cqhttp。\n\n\n\u003c/details\u003e\n\n\n**使用方法**\n\n\n```python\n# nonebot_plugin_epicfree/__init__.py#L27\nepic_matcher = on_regex(r\"^(epic)?喜(加|\\+|＋)(一|1)$\", priority=2, flags=IGNORECASE)\n\n# nonebot_plugin_epicfree/__init__.py#L39\nsub_matcher = on_regex(r\"^喜(加|\\+|＋)(一|1)(私聊)?订阅(删除|取消)?$\", priority=1)\n```\n\n\n - 发送「喜加一」查找限免游戏\n - 发送「喜加一订阅」订阅游戏资讯\n - 发送「喜加一订阅删除」取消订阅游戏资讯\n\n\n*\\* 插件响应基于正则匹配，所以，甚至「EpIc喜+1」这样的指令都可用！*\n\n\n**环境变量**\n\n\n```\nRESOURCES_DIR=\"/data/bot/resources\"\nEPIC_SCHEDULER=\"8 8 8\"\n```\n\n\n限免游戏资讯订阅功能默认在机器人根目录下 `/data/epicfree` 文件夹内生成配置文件。定义 `RESOURCES_DIR` 环境变量即可指定用于存放订阅配置的文件夹，填写包含 `epicfree` 文件夹的 **父级文件夹** 路径即可。如果是 Windows 系统应写成类似 `D:/path/to/resources_dir` 的格式。\n\n限免游戏资讯订阅默认 08:08:08 发送（如果当天的游戏已经推送过则不产生推送），定义 `EPIC_SCHEDULER` 环境变量即可指定推送时间，该配置的三个数字依次代表 `hour` `minute` `second`。\n\n\n**特别鸣谢**\n\n\n[@nonebot/nonebot2](https://github.com/nonebot/nonebot2/) | [@Mrs4s/go-cqhttp](https://github.com/Mrs4s/go-cqhttp) | [@DIYgod/RSSHub](https://github.com/DIYgod/RSSHub) | [@SD4RK/epicstore_api](https://github.com/SD4RK/epicstore_api)\n\n\n\u003e 作者是 NoneBot2 新手，代码写的较为粗糙，欢迎提出修改意见或加入此插件开发！溜了溜了...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonsterxcn%2Fnonebot_plugin_epicfree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonsterxcn%2Fnonebot_plugin_epicfree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonsterxcn%2Fnonebot_plugin_epicfree/lists"}