Code Monkey home page Code Monkey logo

discord.js-bot-template's Introduction

Discord.js Discord bot template

basic bot template with command handler

Change Token in token.json

make commands in commands folder

there is ping command in commands folder the default prefix of the bot is ! you can change this in the config.json

Prerequisites

What things you need to install the software and how to install them

Node.js

Installing

A step by step series of how to get the bot running

Install Node.js

Install Node.js
goto downloads
you can choose the lts or the current version of node.js depending on what you want
then download the installer according to your operating system

Node.js

Installing discord.js and making the bot folder

After you have node.js
create a folder on your computer
On windows open cmd and copy the folder location from top of the file browser
and on cmd type cd "then paste the location" and enter
Then do in the cmd npm i discord.js to install discord.js 
before you do the install command make sure the cmd window is in the right folder
what is the api used to connect to discord

Getting this bot and starting it

Download this project as a zip file then move the zip file to the folder you created
then unzip it there then put token in the token.json to get a token goto Discord Developer Site link below
after you have token in token.json and have installed discord.js you can start bot by typing node app.js

Discord Developer Site

Other things you can do for bot develoment

you can install nodemon to restart the bot everytime the bot file is changed
to install nodemon globally type npm i -g nodemon

Authors

Built With

  • Node.js - the base that the bot runs on
  • discord.js - node.js link to the discord bot api

discord.js-bot-template's People

Contributors

cappediem 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.