Voidoz / Discord-Bot---Base

A base for making a Discord bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Bot

Note that at the moment this README is outdated. I'll just have to get around to it...

This is code for Your Only Friend#xxxx by Oscar Hurst (some code may be edited by others and the original code is stolen *cough* *cough* borrowed from https://discordjs.guide/) and if you want to use this code you may want to edit the package.json file.

Before continuing you must install Node.js to your PC. Link here: https://nodejs.org/en/download/

Bot Setup (Local)

  1. Add this code to the "process.json" file:
  2. {
    	"env":
    	{
    		"prefix": "[Your-Prefix-Here]",
    		"token": "[Your-Discord-Bot-Token-Here]"
    	}
    }
    

  3. Open Command Prompt or Powershell and change directory to the root directory

  4. Type the following into your Command Prompt or Powershell:
    npm install
    

  5. After creating your "process.json" file with Command Prompt or Powershell still open type:
    npm start
    

The bot is now online

###################################

-IGNORE THE FOLLOWING. IT'S OUTDATED!!!-

###################################

Bot Setup (Heroku)

  1. Ensure line 6 of index.js (located in the file named "src") is commented

  2. Add code to Heroku

  3. Go to settings tab on Heroku and set config vars "prefix" and "token" with your prefix and Discord bot token respectively

  4. Deploy on Heroku

The bot is now online

Note: Ensure that the ONLY active dyno is "worker" in the resources tab on Heroku

About

A base for making a Discord bot

License:MIT License


Languages

Language:JavaScript 100.0%