{"id":41618067,"url":"https://github.com/friddle/lark-shell-bot","last_synced_at":"2026-01-24T13:02:51.352Z","repository":{"id":176568227,"uuid":"659100240","full_name":"friddle/lark-shell-bot","owner":"friddle","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-07T07:46:13.000Z","size":197,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-18T06:36:08.135Z","etag":null,"topics":["feishu","feishu-bot","lark","lark-bot"],"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/friddle.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}},"created_at":"2023-06-27T06:25:34.000Z","updated_at":"2024-02-07T12:09:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"c29cf287-8dbe-42b4-a3ab-a3efb2ec2271","html_url":"https://github.com/friddle/lark-shell-bot","commit_stats":null,"previous_names":["friddle/lark-shell-bot"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/friddle/lark-shell-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friddle%2Flark-shell-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friddle%2Flark-shell-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friddle%2Flark-shell-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friddle%2Flark-shell-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/friddle","download_url":"https://codeload.github.com/friddle/lark-shell-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friddle%2Flark-shell-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28728444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"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":["feishu","feishu-bot","lark","lark-bot"],"created_at":"2026-01-24T13:02:41.916Z","updated_at":"2026-01-24T13:02:51.345Z","avatar_url":"https://github.com/friddle.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Feishu-Shell-Bot\n功能很简单。就是跑一个shell命令客户端。跟飞书ChatBot相关\n基于飞书客户端\n\n配置请配置.feishu.env.sample 然后重命名到 .feishu.env\n或者也可以直接在环境变量中注入相应的配置\n\n效果\n\n![Gpt主功能](./pic/main.png)\n\n\n```conf\nFEISHU_APP_ID=飞书的AppId\nFEISHU_APP_SECRET=飞书的AppSecret\nFEISHU_ENCRYPT_KEY=飞书的EncryptKey\nFEISHU_VERIFICATION_TOKEN=飞书的验证Token\nFEISHU_BOT_PATH=监听服务的path\nFEISHU_BOT_PORT=监听的端口\n```\n\n具体配置的含义请参考飞书后台开发者的文档.  \n具体飞书怎么配置后端程序。请直接参考地址.  \n[飞书开发者后台](https://www.feishu.cn/hc/zh-CN/articles/360049067916-%E5%A6%82%E4%BD%95%E5%BC%80%E5%8F%91%E4%BC%81%E4%B8%9A%E8%87%AA%E5%BB%BA%E5%BA%94%E7%94%A8)\n[飞书接入ChatGpt](https://juejin.cn/post/7217644586868539452) 其中飞书操作部分。权限和相应逻辑保持一致。服务默认端口为8080\n\n## 直接使用(记得修改版本)\n```shell\nversion=1.1\nwget -O feishu_shell_bot https://github.com/friddle/lark-shell-bot/releases/download/${version}/feishu_shell_bot\nchmod +x feishu_shell_bot\nwget -O .feishu.env https://raw.githubusercontent.com/friddle/lark-shell-bot/master/.feishu.env.sample\n编辑 .feishu.env\n./feishu_shell_bot\n```\n或者使用\n```docker\ndocker run -d -p 8080:8080 --env-file=.feishu.env friddle/lark-shell-bot\n```\n\n\n\n\n## 使用ChatGPT功能\n![ChatGpt功能](./pic/chatgpt.png)\n\n设置ChatGpt\n```shell\n编辑.chatgpt.env 文件.所有的key参考.chatgpt.env.sample\n填写相应的key\n\nCHATGPT_API_KEY=aaaaaaaaaaaaaaaaaaaaaaaaaa\nCHATGPT_API_TYPE=azure\nCHATGPT_AZURE_RESOURCE=friddle\nCHATGPT_AZURE_DEPLOYMENT=friddle-chatgpt-3.5\nCHATGPT_AZURE_API_VERSION=2023-03-15-preview\n```\n然后飞书请求的时候执行\n```shell\n/chatgpt 查看本地目录\n```\n\n## 在服务器执行远程命令\n设置服务器\n![服务器功能](./pic/machines.png)\n```shell\n编辑 .machines.yaml 文件\n填写服务器信息,具体格式参考 .machines.yaml.sample\n然后执行\n/machines 查看服务器列表\n/ssh machine-01 服务器名字 ls\n/gptssh machine-01 服务器名字 查看当前目录\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriddle%2Flark-shell-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriddle%2Flark-shell-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriddle%2Flark-shell-bot/lists"}