Git Product home page Git Product logo

lokalise-discord-webhook's Introduction

Lokalise-Discord-Webhook

Webhook redirecter written in nodejs using express to redirect webhooks received from Lokalise to Discord. When receiving a POST request from Lokalise it sends an embed to a Discord webhook with all the information from the Lokalise request.

Examples

example

How to install

Clone the repository

git clone https://github.com/theking465/lokalise-discord-webhook.git

Install dependencies

npm install

Rename .env.example to .env and fill in your PORT and receiving discord webhook. If no PORT is given, it will default to 3000. To get your discord webhook url go to the channel where you'd like to receive the messages. Open the settings of that channel and click on integrations. Select webhooks and click Create webhook. Copy the webhook URL and paste it in the .env file.

Setup the Lokalise webhook at project -> integrations -> webhooks. The webhook url is the url where you will host this server followed by your port. Example: www.example.com:3000

To start the server execute the following command on your server

npm start

Customization

The embeds can be customized. The color scheme can be adapted in variables.json[colors]. The values are integers in decimal form of a hex code. To get those values go to your color picker of choice and copy the HEX value without the #. Then convert that hex value over to a decimal number using any online convertor. This is needed since Discord requires this format of colors.

You can toggle if the user their email is showed in variables.json[privacy].

How to contribute

Issues and PRs are always welcome for any feature request or bug report. When opening a pull request, make sure it follows the eslint configuration.

Support

If you need support for this project, please create a Github issue and describe your request.

lokalise-discord-webhook's People

Contributors

dependabot[bot] avatar morb0 avatar theking465 avatar

Watchers

 avatar

Forkers

morb0

lokalise-discord-webhook's Issues

Add direct links

Add direct links to the keys when an event happens.

I see two possible approaches:

  • Add an extra embed field
  • Use the URL paramteter of the embed

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.