A sleek and blazing-fast Discord bot built with Bun and Google Gemini, enabling intelligent and conversational interactions via generative AI.
- 🧠 AI-powered responses through Google Gemini
- ⚡ Ultra-fast performance with Bun
- 💬 Simple and intuitive Discord interaction support
- 📦 Lightweight, efficient, and developer-friendly
git clone https://github.com/Rohaz-bhalla/Discord-Bot
cd Discord-Bot
bun install
⚠️ Ensure Bun is installed globally.
Create a .env.local file in the project root and add your credentials:
DISCORD_BOT_TOKEN=your_discord_bot_token
DISCORD_CLIENT_ID=your_discord_client_id
GEMINI_API_KEY=your_google_gemini_api_keyStart the bot using:
bun index.tsThe bot will begin listening for messages and commands in your Discord server.
discord-gemini-bot/
├── index.ts # Main bot entry point
├── commands/ # Discord slash command definitions
├── .env.local # Environment variables
├── bun.lockb # Bun lockfile
└── package.json # Project metadata
[https://discord.gg/rTnKu8pX] - join to use the bot
- Bun — Modern JavaScript runtime for speed and simplicity
- discord.js — Robust library for Discord bot development
- @google/genai — Gemini API wrapper
MIT © YourName
Open-source and free to use. under MIT licence