Giter VIP home page Giter VIP logo

discord-bot---base's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.