Giter VIP home page Giter VIP logo

discord-bot-template's Introduction

Discord Bot Template

This is a basic code template for the latest Discord.js v14 and has a full slash_commands and events handler. And don't sue me for any errors please TwT.

Requirements

Setting Up

Important Note:

Make sure that your bot has the applications.commands application scope enabled, which can be found under the OAuth2 tab on the Developer Portal and don't forget to Enable the GUILD_MEMBERS and MESSAGE_CONTENT Intents which can be found under the Bot tab.

Initialization

Clone the repository using

git clone https://github.com/deadshotofficial/discord-bot-template.git

Install the required dependancies

# For the Pre-required
npm install

# For Additional
npm install <package_name>

In the config.json file, add your bot's token which can be found under the Bot tab in the Developer Portal

{
   "token": "YOUR_BOT_TOKEN_HERE"
}

Running the bot

After the Initialization has been done, run the following command in the terminal (make sure terminal is open for the same parent folder)

node index.js or node .

Deploying commands

Before you can use the bots slash command you first need to add them to your Discord server. You can use the !deploy command to do so.

Contribution

We love contributors. If you want to contribute in adding some features, you can create a fork, add your features and send a Pull Request. We will be checking the additions and the added stuffs will duely be given credits.

License

This open-sourced project is licensed in Github with Apache License 2.0 and Discord.

Author

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.