- Create an account on discord developer portal and add an application
- Create a bot
- Invite the bot to your server
- Create a new file
.env
in the project root directory and copy the contents from.env.example
. - Update the
.env
file with relevant configurations.-
BOT_TOKEN: discord bot token that is present in the discord developers section https://www.writebots.com/discord-bot-token/
-
GITHUB_ACCESS_TOKEN: Token used to authenticate with github https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
-
GUILD_ID: Right click on the server name. At the last their should be an option for copy ID
-
GITHUB_USERNAME: The repository organization or username. Ex. In this https://github.com/mdshamoon/glific-frontend. the username is
mdshamoon
-
GITHUB_REPOSITORY: the name of the repository. Ex. In this https://github.com/mdshamoon/glific-frontend repo name is
glific-frontend
-
- Run
yarn install
Host it on a server of your choice by running yarn start
. I have hosted it on heroku with a free tier but it sleeps after inactivity of 30 minutes.