Skip to content

A general guide on how to use my repo's to run the discord bots.

Notifications You must be signed in to change notification settings

bilal-the-dev/How-to-run-my-discord-bots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

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 :)

About

A general guide on how to use my repo's to run the discord bots.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published