All Projects â†’ tbarn â†’ guys-bot

tbarn / guys-bot

Licence: MIT license
Making language on GitHub more inclusive one bot at a time 🤖

Programming Languages

javascript
184084 projects - #8 most used programming language

Guys Bot Build Status

Making language on GitHub more inclusive one bot at a time 🤖

Image of example behavior

Getting Started with Glitch

Remix on Glitch

To get your own Glitch-hosted Guys Bot up-and-running, start by clicking the "Remix on Glitch" button above, and follow the steps below:

  1. Configure a new app on Github.

    • For the Webhook URL, use https://www.example.com. This will be replaced later.
    • For the Webhook Secret, open a terminal and run openssl rand -base64 32. Copy/paste the outputted value to the Webhook Secret box. Keep this handy until Step 3.
    • Choose the permissions you want to give your bot based on what you want to build (ex. issues bot, PR bot, hybrid).
    • Save your changes.
  2. You will need to download your private key near the end of the page. In order to use Glitch's environmental variables feature, we will need to make the private key into a single line, including a trailing \n character.

    • Here's an example, the actual key will be longer: -----BEGIN RSA PRIVATE KEY-----\ndfkls83jrfsdf\nndfkls83jrfsdf\ndfkls83jrfsdf\n-----END RSA PRIVATE KEY-----\n
    • If you are using Mac or Linux (gawk on some distributions), you can do this in your command line in the folder where your private key file is saved by running the command: awk '{printf "%s\\n", $0}' private_key_file_name.pem and it will look similar to the example.
    • You can also do the same thing in the text editor of your choice if you like doing regex stuff there.
    • Keep this single line private key handy until Step 3.
  3. Now, go to your Glitch project and edit the .env file (at left) with your app credentials.

    • APP_ID can be found in the About section of your Github app.
    • WEBHOOK_SECRET is the value you generated in Step 1.
    • PRIVATE_KEY should be set to your single line private key from Step 2. Remember to put quotation marks ' around the key, otherwise, it won't work.
    • NODE_ENV= should be set to production.
  4. Wait for app to load. A green Live label should show up next to the Show button when it's finished loading.

The docs are a work in progress. If you get stuck, please open an issue and I'll try to help you.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].