{"id":19854969,"url":"https://github.com/floattech/plugin-template","last_synced_at":"2025-10-28T09:35:14.623Z","repository":{"id":103403330,"uuid":"417178349","full_name":"FloatTech/Plugin-Template","owner":"FloatTech","description":"模块化插件生成模版","archived":false,"fork":false,"pushed_at":"2023-03-19T08:34:41.000Z","size":40,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T20:36:17.794Z","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.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":"2021-10-14T15:11:03.000Z","updated_at":"2024-08-29T01:48:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"9bfc396d-1aa0-4791-a0db-1d616470ba20","html_url":"https://github.com/FloatTech/Plugin-Template","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FloatTech%2FPlugin-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FloatTech%2FPlugin-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FloatTech%2FPlugin-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FloatTech%2FPlugin-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FloatTech","download_url":"https://codeload.github.com/FloatTech/Plugin-Template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251969251,"owners_count":21673182,"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:15.646Z","updated_at":"2025-10-28T09:35:09.576Z","avatar_url":"https://github.com/FloatTech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Plugin-Template\n为 ZeroBot-Plugin-Dynamic 生成动态库插件。\n\n# 使用方法\n### 编写插件\n复制`main.go`到本地或使用[本模版](https://github.com/FloatTech/Plugin-Template)，修改`main.go`的`Inita`函数为插件内容，语法与[ZeroBot](https://github.com/wdvxdr1123/ZeroBot)基本相同。\n### 编译为动态库\n#### 使用Actions编译\n1. fork 本仓库\n2. 上传修改后的`main.go`及其它新增文件。\n3. 创建形如`v1.2.3`的`tag`，触发插件编译流程。\n4. 编译好后前往`Release`页面下载即可。\n#### 本地编译\n```bash\n# 本机架构\ngo build -ldflags \"-s -w\" -buildmode=plugin -o demo.so\n# 交叉编译：详见 workflow 相关代码\nCGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=6 CC=arm-linux-gnueabihf-gcc-9 CXX=g++-9-arm-linux-gnueabihf go build -ldflags=\"-s -w\" -buildmode=plugin -o artifacts/zbpd-linux-armv6\n```\n### 开始使用\n放置动态库到[ZeroBot-Plugin-Dynamic](https://github.com/FloatTech/ZeroBot-Plugin-Dynamic)的`plugins/`目录下，给机器人发送`/刷新插件`即可，或重启也可加载。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloattech%2Fplugin-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloattech%2Fplugin-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloattech%2Fplugin-template/lists"}