{"id":20669643,"url":"https://github.com/fox-one/echo","last_synced_at":"2025-10-29T20:11:43.207Z","repository":{"id":44732363,"uuid":"242460106","full_name":"fox-one/echo","owner":"fox-one","description":"forward group notifications","archived":false,"fork":false,"pushed_at":"2022-08-10T10:53:56.000Z","size":81,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T20:03:57.393Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fox-one.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}},"created_at":"2020-02-23T05:08:28.000Z","updated_at":"2022-08-10T01:45:01.000Z","dependencies_parsed_at":"2022-08-12T11:21:42.285Z","dependency_job_id":null,"html_url":"https://github.com/fox-one/echo","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/fox-one/echo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Fecho","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Fecho/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Fecho/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Fecho/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fox-one","download_url":"https://codeload.github.com/fox-one/echo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Fecho/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278656085,"owners_count":26023141,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-16T20:15:16.434Z","updated_at":"2025-10-06T18:19:00.999Z","avatar_url":"https://github.com/fox-one.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# echo\n\nSend log to Mixin Messenger Groups.\n\n# How to use Echo?\n\n## Config Scanner\n\n### 1. Download echo binary\n\n- Download from https://github.com/fox-one/echo/releases.\n- Extract and upload `scanner` to server. \n\n### 2. Get Token\n\n- Create a new group in Mixin Messenger\n- add echo bot to it\n- copy the token.\n\n### 3. Config echo\n\nwrite a .env file\n\n```\nSCANNER_TOKEN_INFO=YOUR_TOKEN_TO_SEND_INFO_LOG\nSCANNER_TOKEN_ERROR=YOUR_TOKEN_TO_SEND_ERROR_LOG\nSCANNER_TOKEN_WARNING=YOUR_TOKEN_TO_SEND_WARNING_LOG\n```\n\nadd echo as a service\n\n```\n[Unit]\nDescription=Scanner Service\nAfter=network.target\n\n[Service]\nType=simple\nUser=YOUR_NAME\nRestart=on-failure\nRestartSec=1s\nEnvironmentFile=YOUR_ENV_FILE_PATH\nExecStart=/YOUR_ECHO_FILE_PATH/scanner --format post --cmd '[\"/bin/journalctl\",\"-u\",\"THE_SERVICE_YOU_WANNA_WATCH\",\"-f\",\"-o\",\"cat\"]'\n\n[Install]\nWantedBy=multi-user.target\n```\n\n### 4. Done\n\n- use `github.com/sirupsen/logrus` and enable json log format in your service.\n- restart all services\n\n## Config Echo Server\n\n### Blaze\n\n接收入群消息，然后自动发 token 给拉机器人进群的人\n\n### Server\n\n```http request\nPOST https://echo.yiplee.com/message\n```\n\n**Header:**\n\nAuthorization: Bearer access_token\n\n**Params:**\n\n```json5\n{\n   \"category\": \"Plain_Text\",\n   \"data\": \"base64 msg data\"\n}\n```\n\n\n### Rate Limit\n\n一分钟一百个请求\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffox-one%2Fecho","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffox-one%2Fecho","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffox-one%2Fecho/lists"}