{"id":20210510,"url":"https://github.com/lc-cn/dingtalk-bot","last_synced_at":"2026-01-31T00:33:47.655Z","repository":{"id":212441648,"uuid":"731473884","full_name":"lc-cn/dingtalk-bot","owner":"lc-cn","description":"钉钉机器人开发SDK","archived":false,"fork":false,"pushed_at":"2024-01-10T01:07:52.000Z","size":357,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-14T06:29:29.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lc-cn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-12-14T06:55:45.000Z","updated_at":"2024-10-12T06:53:16.000Z","dependencies_parsed_at":"2023-12-14T09:32:21.541Z","dependency_job_id":"920d3d74-072c-4286-8f7d-38afea02cd69","html_url":"https://github.com/lc-cn/dingtalk-bot","commit_stats":null,"previous_names":["lc-cn/dingtalk-bot"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/lc-cn/dingtalk-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lc-cn%2Fdingtalk-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lc-cn%2Fdingtalk-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lc-cn%2Fdingtalk-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lc-cn%2Fdingtalk-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lc-cn","download_url":"https://codeload.github.com/lc-cn/dingtalk-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lc-cn%2Fdingtalk-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28925075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T22:32:35.345Z","status":"ssl_error","status_checked_at":"2026-01-30T22:32:31.927Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-11-14T05:48:13.732Z","updated_at":"2026-01-31T00:33:47.637Z","avatar_url":"https://github.com/lc-cn.png","language":"TypeScript","readme":"# dingtalk-bot\n- 钉钉机器人开发SDK\n## prepare\n1. 前往[钉钉开放平台](https://open-dev.dingtalk.com/fe/app#/corp/app)创建应用\n2. 点击创建好的应用，为其添加`机器人`能力![img.png](img.png)\n3. 点击凭证与基础信息，获取`clientId`和`clientSecret`![img_2.png](img_1.png)\n4. 填写机器人信息，并指定消息接收模式为`Stream模式`![img_1.png](img_2.png)\n5. 发布机器人\n## install\n```shell\nnpm install node-dd-bot\n```\n## usage\n```javascript\nconst {Bot}=require('node-dd-bot')\nconst bot=new Bot({\n\tclientId:'',\n\tclientSecret:''\n})\nbot.on('message.group',(e)=\u003e{\n\te.reply('hello world')\n})\nbot.on('message.private',(e)=\u003e{\n\te.reply('hi world')\n})\nbot.sendPrivateMsg('user_id',[\n\t'你好呀',\n\t{\n\t\ttype:'image',\n\t\turl:'https://foo.bar/img.jpg'\n\t}\n])\n\nbot.sendGroupMsg('converationId',[\n\t'你好呀',\n\t{\n\t\ttype:'image',\n\t\turl:'https://foo.bar/img.jpg'\n\t}\n])\nbot.start()\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flc-cn%2Fdingtalk-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flc-cn%2Fdingtalk-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flc-cn%2Fdingtalk-bot/lists"}