A minimal starter template for building Discord bots using Node.js. This template provides essential features like command and event handling to streamline the bot development process.
- Command Handling: Organize bot commands easily.
- Event Handling: Manage Discord events efficiently.
- Modular Structure: Easy to extend and customize.
-
Clone the repository:
git clone https://github.com/iammuttaqi/discord-bot-starter-nodejs.git cd discord-bot-starter-nodejs -
Install dependencies:
npm install
-
Configure your bot token in
config.json:{ "token": "YOUR_DISCORD_BOT_TOKEN", "clientId": "YOUR_CLIENT_ID", "guildId": "YOUR_GUILD_ID" } -
Deploy commands:
node deploy-commands.js
-
Run the bot:
node index.js
- Customize commands inside the
commandsfolder. - Modify event listeners in the
eventsfolder.
- discord.js – Interact with the Discord API.
- ESLint – Ensure code consistency.
This project is open-source under the MIT License.