Giter VIP home page Giter VIP logo

quotebot's Introduction

QuoteBot TravisGithub All Releases node

ForTheBadge

A discord bot that outputs a random quote upon command

Setup

  1. Get a sweet text editor
  2. Install node.js

Windows

Cholatey it: @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" into admin CMD then choco install node.js

OR

Mac

Homebrew it: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" then brew install node.js

OR

Linux

sudo apt-get install node.js sudo apt-get install npm (or other package manager)

  1. npm install discord.js

  2. npm install infinite-loop

  3. Clone the project (git clone https://github.com/EpicDJL/QuoteBot.git) or download and extract the zip file.

  4. Edit the config file

  5. put the prefix and command of your choice

{
    "prefix": "!",
    "command": "quote",

(This makes the command !quote) 8. create a bot on https://discordapp.com/developers/applications/me then create a bot account:

Bot Creation Gif

  1. copy the "token" and paste it into the config file
{
    "token": "right here :)"
  1. format the quotes so that they each are a seperate line
quote 1
quote 2
quote 3
(no quotations)
  1. got to http://textmechanic.com/text-tools/basic-text-tools/add-prefixsuffix-into-line/ and paste your quotes into the text box
  2. put " in the prefix box and ", into the suffix box, this shoud format your quotes like this
"quote 1",
"quote 2",
"quote 3",
  1. paste it into the quote section in the config file. your config shoould now look like this:
{
    "prefix": "prefix",
    "command": "command",
    "token": "token",
    "quotes":["quote 1",
    "quote 2",
    "quote 3",]
}

now remove the comma from the very last line. 14. create a discord invite by pasting your bot Client Id into where it says CLIENT_ID_GOES_HERE in this link:

https://discordapp.com/oauth2/authorize?client_id=CLIENT_ID_GOES_HERE&scope=bot&permissions=2097176631 

a box should pop up asking you to invite the bot to your discord server. choose which server you want and hit ok Bot Creation Gif

  1. run node quote.js to start the bot, it should output one of the random quotes as sign it is online.
  2. Check your bot by typing the prefix and command you chose into discord.

----------Enjoy-----------

quotebot's People

Contributors

dekuraan avatar

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.