Git Product home page Git Product logo

developer_webhook_bot's Introduction

Developer Webhook Telegram Bot

Github Actions

Developer Webhook Bot is a simple Telegram bot that will forward you Webhooks in your chats.

So far, the bot is mainly used to handle Github Webhook events.

Privacy

Up to know the Bot is stateless. The link between a webhook and a chat is encoded in the webhook link itself.

Commands

  • /webhook generates a webhook url for the chosen provider that will forward messages to the current chat

Github Webhooks

The Bot tries to handle as many useful webhook events as possible. To limit the number of events, just configure the webhook in Github to deliver only certain event types.

Building

npm install
npm run build

developer_webhook_bot's People

Contributors

dependabot[bot] avatar sgratzl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

sergous

developer_webhook_bot's Issues

support to update messages on edit events

e.g. auto update the issue message if the issue text was updated. (but just if it is a recent message).

Tho, requires some kind of state/ history to map issue to message id

When i do npm start

[email protected] start /home/kai-net/developer_webhook_bot
node -r dotenv/config ./build/bot

/home/kai-net/developer_webhook_bot/node_modules/telegraf/lib/core/helpers/compact.js:11
    return Object.fromEntries(compactEntries);
                  ^

TypeError: Object.fromEntries is not a function
    at Object.compactOptions (/home/kai-net/developer_webhook_bot/node_modules/telegraf/lib/core/helpers/compact.js:11:19)
    at new ApiClient (/home/kai-net/developer_webhook_bot/node_modules/telegraf/lib/core/network/client.js:208:26)
    at new Telegram (/home/kai-net/developer_webhook_bot/node_modules/telegraf/lib/telegram.js:7:1)
    at new Telegraf (/home/kai-net/developer_webhook_bot/node_modules/telegraf/lib/telegraf.js:45:25)
    at Object.<anonymous> (/home/kai-net/developer_webhook_bot/build/bot.js:37:13)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node -r dotenv/config ./build/bot`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kai-net/.npm/_logs/2021-07-08T04_58_16_535Z-debug.log

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.