A simple Discord bot built using Node.js and discord.js.
This bot supports slash commands and uses environment variables for secure configuration.
- Slash command support (
/ping) - Secure token handling using
.env - Built with discord.js v14
- Node.js
- discord.js
- dotenv
git clone https://github.com/your-username/discord-bot.git
cd discord-bot
2️⃣ Install dependencies
npm install
3️⃣ Create .env file
Create a .env file in the project root and add:
DISCORD_BOT_TOKEN=your_bot_token_here
CLIENT_ID=your_client_id_here
4️⃣ Start the bot
npm start
📌 Slash Commands
/ping → Replies with Pong!