Code Monkey home page Code Monkey logo

lark-bot-worker's Introduction

Lark Bot Worker

Workflow

Deploy to Cloudflare Workers

Lark/Feishu bot on Cloudflare Workers.

Features

  • Forward GitLab's comment to Feishu/Lark

image

Usages

  • Deploy bot to Cloudflare Workers

  • Add Webhooks at GitLab

image

Config

Environment variables:

CLOUDFLARE_ACCOUNT_ID=xxx
CF_API_TOKEN=xxx
# (Optional)
CF_ZONE_ID=xxx

# Lark/Feishu bot webhook
WEBHOOK=https://open.feishu.cn/open-apis/bot/v2/hook/xxxxxxxxxxxx
# (Optional) Lark/Feishu bot signature secret
SIGN_SECRET=xxxxxxxxxxxx

References

lark-bot-worker's People

Contributors

lawvs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lark-bot-worker's Issues

SIGN_SECRET could not be empty

Really amazing work and clear coding structure!

I find a problem when I use lark webhook without a sign. It seems that the wrangler cannot put empty str as a secret and raises the following errors:

Error: Your secret cannot be empty.
Enter the secret text you'd like assigned to the variable SIGN_SECRET on the script named robot:

To keep the simplicity of using wrangler action, I recommend stating that SIGN_SECRET is necessary in the docs.

And any plans to support other Gitlab triggers? Like push?

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.