Vincent440 / disc-bot

A simple JavaScript Discord bot.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DiscBot

Description

A simple Discord bot to welcome new users to a Discord server. As well as expose basic commands users can enjoy.


Example command that responds with a random dad joke from icanhazdadjoke.com

>joke

Getting Started

  1. Clone the project down and open with an IDE/Editor

  2. Create a .env file and get a discord API token to store in it.

  3. Save the .env file with your updated Discord token.

    DISCORD_TOKEN='super-secret-one-time-token'
    CLIENT_ID=''
    CAT_API_KEY=''
    
  4. Install any dependencies using NPM npm i

  5. Start the bot up using any of the following commands.

    • node index.js - Runs the index.js file directly using node
    • npm start - Runs the index.js file
    • npm run dev - Start the dev server with nodemon

Author

Vincent Shury, Full-stack web developer

About

A simple JavaScript Discord bot.


Languages

Language:JavaScript 99.8%Language:Procfile 0.2%