{"id":19854899,"url":"https://github.com/floattech/zerobot-plugin-playground","last_synced_at":"2025-04-12T12:13:05.808Z","repository":{"id":38145683,"uuid":"487026678","full_name":"FloatTech/ZeroBot-Plugin-Playground","owner":"FloatTech","description":"快来这里上传你的奇思妙想吧！","archived":false,"fork":false,"pushed_at":"2024-07-08T06:15:23.000Z","size":724,"stargazers_count":88,"open_issues_count":6,"forks_count":46,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-12T12:12:59.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FloatTech.png","metadata":{"files":{"readme":"README-Edit.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-04-29T15:43:39.000Z","updated_at":"2025-04-04T08:53:35.000Z","dependencies_parsed_at":"2024-05-30T09:56:22.738Z","dependency_job_id":"d265008f-78a0-42a1-91c2-73b02a7186f8","html_url":"https://github.com/FloatTech/ZeroBot-Plugin-Playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FloatTech%2FZeroBot-Plugin-Playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FloatTech%2FZeroBot-Plugin-Playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FloatTech%2FZeroBot-Plugin-Playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FloatTech%2FZeroBot-Plugin-Playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FloatTech","download_url":"https://codeload.github.com/FloatTech/ZeroBot-Plugin-Playground/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565082,"owners_count":21125418,"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":[],"created_at":"2024-11-12T14:11:01.769Z","updated_at":"2025-04-12T12:13:05.787Z","avatar_url":"https://github.com/FloatTech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZeroBot-Plugin-Playground\n快来这里上传你的奇思妙想吧！好的想法将会被合并入主仓库哦~\n## 简介\n本仓库是[ZeroBot-Plugin](https://github.com/FloatTech/ZeroBot-Plugin)的插件试验场，无需任何pr即可上传并调试自己的插件。你可以在这里验证你的想法，与其他人进行交流，不会遇到任何阻碍。\n## 我该怎么做？\n1. 你需要成为[FloatTech](https://github.com/FloatTech)组织的成员。这可以通过在此仓库提出issue完成。\n2. 同时，我们会邀请你加入组织，并加入[maintainer](https://github.com/orgs/FloatTech/teams/maintainer)组。你需要查看邮件确认邀请。\n3. 现在你已经获得了对本仓库的写权限，可以推送你的插件了！\n## 约法三章\n1. 每个实现特定功能的插件应该放在根目录的一个文件夹下，不要越界，否则会被移除。\n2. 不要在不经允许的情况下随意改动其他人的插件，否则会被踢出[maintainer](https://github.com/orgs/FloatTech/teams/maintainer)。\n3. 礼貌交谈。\n## 完善教程\n目前开发教程还不是很全面，欢迎大家编辑此README完善它，让更多人轻松加入zbp大家庭！\n\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n## 插件基础 (参考/复制黏贴example文件夹下JiangRed的message.go)\n### **Init**\n---\n#### 插件默认启用状态\n*不影响插件注册*\n```\nDisableOnDefault: true | false\n```\n---\n#### 插件帮助 \n*/用法*\n```\nHelp: STRING\n```\n示例:\n``` \nHelp: \"This is what the plugin is about\", +\n\"And this is some extra info\", +\n\"- ThisIsTrigger And this is description\", +\n\"- Trigger2 | Trigger3 | Trigger4\", +\n\"- TriggerA | TriggerB | TriggerC\", +\n\"- TriggerABC123 description\",\n```\n---\n#### 插件数据路径 (文件夹)  \n公有数据:  \n*名称首字母大写*\n```\nPublicDataFolder: \"Example\"\n```\n私有数据:  \n*名称首字母小写*\n```\nPrivateDataFolder: \"example\"\n```\n---\n#### 插件启用/禁用触发\n启用:  \n*任意Handle功能* //描述肯定不准确 大概意思是任何可以被塞进handle里面的都可以正常触发\n```\nOnEnable: func(ctx *zero.Ctx) {\n    ctx.send(\"MESSAGE\")\n    ctx.sendChain(message.At(2401223))\n}\n```\n禁用:  \n*同上*\n```\nOnDisable: func(ctx *zero.Ctx) {\n    ctx.DeleteMessage(message.NewMessageIDFromInteger(114514))\n}\n```\n\u003cbr\u003e\n\n### **Engine** //这也不太对\n---\n常用功能: \n```\nengine.On(\"notice/notify/poke\") //没找到相关内容, 只在chat插件里面有这个.\n任意戳一戳触发\n```\n\n***未完成***","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloattech%2Fzerobot-plugin-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloattech%2Fzerobot-plugin-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloattech%2Fzerobot-plugin-playground/lists"}