{"id":47969044,"url":"https://github.com/crayonlu/wrap-bot","last_synced_at":"2026-04-04T10:41:28.024Z","repository":{"id":322195806,"uuid":"1074346205","full_name":"crayonlu/wrap-bot","owner":"crayonlu","description":"A QQ bot framework using golang","archived":false,"fork":false,"pushed_at":"2026-01-28T14:47:29.000Z","size":6457,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-29T06:01:21.125Z","etag":null,"topics":["bot","chat","golang","qq"],"latest_commit_sha":null,"homepage":"","language":"Go","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/crayonlu.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-11T16:01:00.000Z","updated_at":"2026-01-28T14:55:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/crayonlu/wrap-bot","commit_stats":null,"previous_names":["crayonlu/wrap-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crayonlu/wrap-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crayonlu%2Fwrap-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crayonlu%2Fwrap-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crayonlu%2Fwrap-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crayonlu%2Fwrap-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crayonlu","download_url":"https://codeload.github.com/crayonlu/wrap-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crayonlu%2Fwrap-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31397055,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: 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":["bot","chat","golang","qq"],"created_at":"2026-04-04T10:41:27.419Z","updated_at":"2026-04-04T10:41:28.019Z","avatar_url":"https://github.com/crayonlu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e A bot framework using golang\n* Introduction\nThe framework is a highly available and scalable QQ robot framework\n* Dev\nIt is developed using golang which is known for its high concurrency\n* modal\nUse onion modal pattern,which is a intuitive way\n---------\n- **Trace:** Start from 2025.10.12...\n- **Status:** 🚧 In Active Development\n\n![Architexture](/docs/Architecture.svg)\n\n\u003e Project Structure\n\n```\nbot/\n├── cmd/bot/                  # Main application entry point\n├── internal/\n│   ├── config/               # Configuration management\n│   └── admin/               # Admin API and WebSocket\n├── pkgs/\n│   ├── bot/                  # Core bot engine\n│   │   ├── engine.go         # Bot engine with middleware support\n│   │   ├── context.go        # Request context\n│   │   ├── event.go          # Event types and handlers\n│   │   ├── middleware.go     # Built-in middlewares\n│   │   └── helper.go         # Helper functions\n│   ├── napcat/               # NapCat API client\n│   │   ├── client.go         # HTTP client\n│   │   ├── websocket.go      # WebSocket client\n│   │   └── message.go        # Message operations\n│   └── feature/              # Utility features\n│       └── scheduler.go      # Task scheduler\n├── plugins/                  # Bot plugins\n│   ├── plugin.go             # Plugin registration\n│   ├── ping.go               # Ping command\n│   ├── echo.go               # Echo command\n│   ├── help.go               # Help command\n│   ├── ai_chat.go            # AI chat integration\n│   └── tech_push/            # Tech news push\n│       ├── tech_push.go\n│       └── handlers/         # Data source handlers\n├── configs/                  # Configuration files\n├── wrap-web/                # Admin web panel (React + shadcn/ui)\n│   ├── src/\n│   │   ├── components/       # React components\n│   │   ├── pages/           # Page components\n│   │   ├── lib/             # Utilities (API, WebSocket)\n│   │   ├── stores/          # Zustand state management\n│   │   └── hooks/           # Custom React hooks\n│   └── package.json\n└── .github/workflows/        # CI/CD workflows\n```\n\n\u003e Architecture Overview\n\n**Core Components:**\n- Engine: Middleware-based request handling with onion model pattern\n- Context: Request context carrying event data and response methods\n- Event: WebSocket event processing from NapCat\n- Middleware: Recovery, Logger, Authentication, RateLimit, etc.\n\n**Integration:**\n- NapCat Client: HTTP API calls for sending messages and querying data\n- WebSocket Client: Real-time event receiving from NapCat server\n- Scheduler: Cron-like task scheduling for periodic operations\n\n**Plugin System:**\n- Registration-based plugin loading\n- Middleware chain execution\n- Support for commands, event handlers, and scheduled tasks\n\n![System](/docs/System.svg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrayonlu%2Fwrap-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrayonlu%2Fwrap-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrayonlu%2Fwrap-bot/lists"}