Skip to content
Spiderjockey02 edited this page Nov 7, 2020 · 4 revisions

Self hosting the bot

Want to host the bot yourself, if not invite him?

Support will only be given the base source code. (No edits to the code.)

Installation

First of all, make sure you have downloaded:

  • Node.js. (Version 12 or higher)
  • NPM (Normally comes with Node.js)
  • MongoDB (This can be a local server or one hosted by them)
  • git (optional - to download the file).
  • FFMPEG (I think can't exactly remember)

Now, clone this repository by downloading or running the command git clone https://github.com/Spiderjockey02/Discord-Bot.git.

Next run the following commands:

$ cd Discord-Bot
$ npm install
$ npm start

This will install all the correct dependencies needed to run the bot.

Setting up the bot

Fill out config.example.js with the correct information and then rename it to config.js.

If it passes and no errors well done you have set up the config correctly. If you are getting errors dont be afraid to ask me on my support server, I'll be happy to help you on your conquest to make Discord's next best bot.

Next go to https://discord.com/developers/applications and turn on the privileged gateway intents. This will also for the bot to use its full functionality.

Dashboard Setup

It is recommended to run the dashboard with a proxy (like Nginx)

Nginx Configuration

server {
    listen 80;

    server_name dashboard.bot-website.com;

    location / {
        proxy_pass http://127.0.0.1:33445;
    }
}

If you are getting an error on the lines of dashboard error no access, you might want to up the values 80 & 403 as most OS's don't allow ports under 1024 to be opened to the public.

NOTE: Running the bot with a process manager (like PM2) is recommended.

This bot must be run on a Discord bot account. Do NOT try to run this on a normal user account. This is against the Discord Terms of Service.

Also, do NOT play with the eval command. You have been warned.