guys-bot
guys-bot copied to clipboard
Making language on GitHub more inclusive one bot at a time 🤖
Guys Bot 
Making language on GitHub more inclusive one bot at a time 🤖

Getting Started with 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:
-
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.
- For the Webhook URL, use
-
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
\ncharacter.- 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 (
gawkon 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.pemand 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.
- Here's an example, the actual key will be longer:
-
Now, go to your Glitch project and edit the
.envfile (at left) with your app credentials.APP_IDcan be found in the About section of your Github app.WEBHOOK_SECRETis the value you generated in Step 1.PRIVATE_KEYshould 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 toproduction.
-
Wait for app to load. A green
Livelabel 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.