From 1b21d37cb5a5bf23c01af4c1ee9a90c1c20c94d7 Mon Sep 17 00:00:00 2001 From: murilooon Date: Thu, 4 Mar 2021 16:55:13 -0300 Subject: [PATCH] docs: run locally on readme --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 40ce0ad..472b90e 100644 --- a/README.md +++ b/README.md @@ -42,3 +42,17 @@ The bot will offer a default value for each parameter. ### Example POAP Event ![POAP-bot example](https://res.cloudinary.com/dbiqkiypz/image/upload/v1604800813/Screen_Shot_2020-11-07_at_23.00.04_z3xulj.png) + +## Run locally + +1. `npm install` +2. `npm install -g nodemon` +3. `sudo -i -u postgres` +4. `psql` +5. Run all queries on `db/schema.js` to create the tables +6. Create a bot [here](https://discord.com/developers/applications/817041487161196594/information) and get the token. You can follow [this tutorial](https://www.howtogeek.com/364225/how-to-make-your-own-discord-bot/) +7. Copy the bot Token and paste in the end of the `bot.js`, on `process.env.BOT_TOKEN` +8. `npm run start` +9. Paste the bot Client ID in this url: `https://discordapp.com/oauth2/authorize?client_id=CLIENTID&scope=bot` +10. Access the URL and let the bot join your server +11. Finished! Now have fun using it!