Started out as a side project for a discord server, but I have since decided to opensource it for others to use. This project will likely not see any more updates as I look for other (more enjoyable) things to do instead.
- NodeJS and npm
- MongoDB set up and running (See this if you don't know how)
- A decent enough server (I can run this fine on a 2GB Digitalocean droplet with 50GB storage)
-
- Clone the repository to your directory of choice on your server. (It will create its own folder so keep this in mind)
git clone https://github.com/dev-sda1/DiscBot.git
This shouldn't take long to copy over if your provider's bandwidth is good enough
- Clone the repository to your directory of choice on your server. (It will create its own folder so keep this in mind)
-
- Edit the config.json file in the storage folder to add your token and mongo account. Make sure it's secure! Click here if you don't know how
-
- Navigate to the root of the folder and run
npm install && npm bot
- Navigate to the root of the folder and run
-
- Check that your bot is online in the server!
Can't figure out bot permissions? Use this website
If you want it to keep running, see the guide below for how to run it with forever:
Running it under Forever
-
- Install forever using
npm install forever
- Install forever using
-
- Follow all the steps above until step 3.
-
- On step 3, use
npm install && forever start bot
to install all the required extras and to start it immediately.
- On step 3, use
To check logs, use forever logs
and navigate to the directory it shows you. It's typically /root/.forever/[random_name].log