Danteon0 / discord-bot-template-v14

Discord slash commands bot template for discord.js v14

Home Page:https://emirhankaya.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Website X

Discord Presence

πŸ€– Discord v14 Bot Infrastructure

This project is a bot infrastructure prepared using version 14 of the Discord.js library. It provides an easy-to-use, flexible, and extensible structure, allowing you to quickly develop your own Discord bot.

βš™οΈ Setup

πŸ“• Requirements

  • Node.js v16 or higher
  • NPM or Yarn

πŸ“• Steps

  1. Clone this project:

    git clone https://github.com/Danteon0/discord-bot-template-v14.git
    cd discord-bot-template-v14
  2. Install the necessary dependencies:

    npm install
  3. Edit the config.json file and enter the required information:

    {  
      "author": ["AUTHOR_ID"], // Your discord client ID
      "token": "BOT_TOKEN", // Bot token
      "clientId": "CLIENT_ID", // Bot client ID
      "embedcolor": "#5865f2" // Embed color for manage embed colors one line
    }
  4. Upload slash commands to discord:

    node deploy-commands.js
  5. Start the bot:

    node main.js

πŸ“– Usage

  • Commands are located in the commands folder. To add a new command, create a new JavaScript file in this folder.
  • Events are located in the events folder. To add a new event, create a new JavaScript file in this folder.

🀝 Contribution

We welcome contributions! Please read the CONTRIBUTING.md file before contributing.

πŸ“œ License

This project is licensed under the MIT License.


You can use this infrastructure to develop your own bot projects and contribute to the Discord community. Happy coding!

πŸ“—Detailed Setup Guide

πŸ“Œ Creating a Bot

  1. Go to the Discord Developer Portal.
  2. Click on the "New Application" button.
  3. Enter a name for your application and click "Create".
  4. Navigate to the "Bot" section on the left sidebar.
  5. Click on "Add Bot" and confirm.
  6. Your bot is now created. You can find the "Token" here, which you will use in your config.json.

πŸ“Œ Obtaining a Bot Token

  1. In the "Bot" section of your application, click on the "Copy" button under the "Token" section.
  2. Paste this token into the config.json file as shown above.

πŸ“Œ Enabling Intents

  1. In the "Bot" section of your application, scroll down to the "Privileged Gateway Intents" section.
  2. Enable the "Presence Intent" and "Server Members Intent" if your bot requires them.

πŸ“Œ Getting a Bot Invite Link

  1. Go to the "OAuth2" section on the left sidebar.
  2. Click on "URL Generator".
  3. In the "Scopes" section, select "bot" and "applications.commands".
  4. In the "Bot Permissions" section, select the permissions your bot needs.
  5. Copy the generated URL and use it to invite your bot to your server.

πŸ“Œ Installing Node.js

  1. Go to the Node.js official website.
  2. Download the LTS version suitable for your operating system.
  3. Follow the installation instructions provided.

πŸ› οΈ Support

If you need help or have any questions, feel free to reach out:

By following these detailed instructions, you can set up your own Discord bot using this infrastructure. Enjoy building your bot!

About

Discord slash commands bot template for discord.js v14

https://emirhankaya.net

License:MIT License


Languages

Language:JavaScript 99.3%Language:Batchfile 0.5%Language:Shell 0.2%