Coder Social home page Coder Social logo

huhuhang / yuque-wecom-bot Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 2.0 9 KB

本项目提供了基于 Cloudflare Workers 部署 API,支持基于语雀 Yuque Webhook 将操作消息推送给企业微信机器人。

Home Page: https://yuque-wecom-bot.huhuhang.workers.dev/

License: MIT License

JavaScript 100.00%
cloudflare-workers wecom wechat webhook bot

yuque-wecom-bot's Introduction

本项目提供了基于 Cloudflare Workers 部署 API,支持快速配置语雀 Webhook 将操作消息推送给企业微信机器人。

示例如下:

目前支持知识库文档新增、更新等操作的消息提醒。

快速使用

你可以使用本项目配置好的服务:

  • Webhook URL: https://yuque-wecom-bot.huhuhang.workers.dev?key=<你的机器人密钥>

为了更好的可用性,推荐按照下方步骤自行部署。

如何部署

你可以直接在 Cloudflare Workers 网页版中新建项目,并复制本仓库中的 index.js 到在线编辑器中部署。

或者使用官方提供的 wrangler cli 工具:

  1. 了解 Cloudflare Workers 命令行工具 wrangler 的使用方法。

  2. 基于本项目初始化一个新的项目。

    wrangler generate yuque-wecom-bot https://github.com/huhuhang/yuque-wecom-bot
  3. 请修改 wrangler.toml 中预留的 account_id,替换为你的账户信息。

  4. yuque-wecom-bot 项目添加到 Cloudflare Workers 部署。

如何使用

  1. 基于上述步骤在 Cloudflare Workers 中部署完成后,你会得到类似 https://yuque-wecom-bot.你的自定义域名.workers.dev 的路由地址。

    1640744784436

  2. 创建企业微信机器人,并获得 Webhook Key。

    1640744769818

  3. 此时 Webhook 推送地址为:https://yuque-wecom-bot.你的自定义域名.workers.dev/?key=你的企业微信机器人KEY

  4. 在语雀配置 Webhook,将 Webhook 的 URL 替换为上述路由地址。

    1640744749518

yuque-wecom-bot's People

Contributors

huhuhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

yuque-wecom-bot's Issues

语雀通知无法触达

UP你好,疑似语雀通知无法触达。本地未科学上网的情况下也无法触达。有其他的替代解决方案吗

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.