Git Product home page Git Product logo

discordbot's Introduction

DiscordBot

First we need to add your bot to your server and get a token

Follow this guide: Creating a discord bot & getting a token by reactiflux

Then we need to setup our bot on our computer
  1. Create a folder where your bot will be located and go there in terminal/node.js command prompt
  2. Download the repository's file into your project folder
We also need to install 'dependencies', so that our bot can connect to our server in discord and work
  1. First we need Node.js and npm
  2. Run all of these commands, using node.js command prompt as administator (only for windows)
  3. If you are on windows first run npm install --global windows-build-tools.
  4. Then run npm install
Youtube Data API
  1. Use this wizard to create or select a project in the Google Developers Console and automatically turn on the API. Click Continue, then Go to credentials.
  2. On the Add credentials to your project page, click the Cancel button.
  3. At the top of the page, select the OAuth consent screen tab. Select an Email address, enter a Product name if not already set, and click the Save button.
  4. Select the Credentials tab, click the Create credentials button and select OAuth client ID.
  5. Select the application type Other, enter the name "YouTube Data API Quickstart", and click the Create button.
  6. Click OK to dismiss the resulting dialog.
  7. Click the download (Download JSON) button to the right of the client ID.
  8. Move this file to your project directory and rename it to client_secret.json.
Run it
  1. Run node bot
  2. The first time you will have to visit the provided url and copy the code
  3. Now the bot should show up in the server you told it to and you can type n!help for a list of commands
  4. Give your bot admin under roles so that it can perform all of its functions.

discordbot's People

Contributors

zentrik avatar

Watchers

 avatar

discordbot's Issues

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.