I have added a lot of repo's for discord bots i made. Here's a general guide how you could run em.
You'll see a sample.env
file in all my repositries. Create a file called .env
and paste the content of sample file into it.
Replace the dummy values with original ones.
Sometimes the project may have a sample.config.json
for ids of channels and other things. Just create a config.json
file and paste the content of former file into latter.
- Install Git from here
- After installing, right click on desktop and open
git bash
- Clone the repositry using the cmd
git clone [url of repo here]
- Download nodejs from here
- Download vs code from here
- Open the folder, git created, in vs code then open terminal and run the following cmds successively.
npm install
node index
Boom! The bot is on :D
One downside of running locally is if you turn off your pc, the bot will go off. If you are looking to make it run 24/7 refer to my cloud deployment guide here
For bots, i use discord js library, mongoose ODM for mongodb i love it💕
See you next time :)