Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/danteon0/discord-bot-template-v14

Discord slash commands bot template for discord.js v14
https://github.com/danteon0/discord-bot-template-v14

discord discord-api discord-bot discord-js discordapp discordbot discordjs template template-project template-repository v14 v14-bot v14-discord-bot-template v14-js

Last synced: about 9 hours ago
JSON representation

Discord slash commands bot template for discord.js v14

Awesome Lists containing this project

README

        



Discord


Website


X

[![Discord Presence](https://lanyard.cnrad.dev/api/496393095282294796)](https://discord.com/users/496393095282294796)

# πŸ€– 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:

```bash
git clone https://github.com/Danteon0/discord-bot-template-v14.git
cd discord-bot-template-v14
```

2. Install the necessary dependencies:

```bash
npm install
```

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

```json
{
"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:

```bash
node deploy-commands.js
```

5. Start the bot:

```bash
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](contributing.md) file before contributing.

## πŸ“œ License

This project is licensed under the [MIT License](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](https://discord.com/developers/applications).
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](https://nodejs.org/).
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:

- **Join our Discord server:** [Join here](https://discord.com/invite/eWcNKXmsgw)
- **Visit our website:** [emirhankaya.net](https://emirhankaya.net)
- **Follow on Twitter:** [Danteon0](https://x.com/Danteon0)

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