Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.38 KB

README.md

File metadata and controls

43 lines (26 loc) · 1.38 KB

What is this?

I have added a lot of repo's for discord bots i made. Here's a general guide how you could run em.

Environment Variables

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.

Configuration

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.

Installation

  • 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]

Run Locally

  • 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

Deployment on cloud

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

Libraries and frameworks

For bots, i use discord js library, mongoose ODM for mongodb i love it💕

See you next time :)