Rajjo Gujjar π is a feature-rich, modular Discord bot designed for fun, engagement, and server management. Built with Python and leveraging LLM-powered conversational AI, it offers playful chat, music playback, moderation, giveaways, logging, and more. The bot is organized using Discord.py cogs for maintainability and scalability.
- Conversational AI: Chat with Rajjo Gujjar using context-aware LLM responses.
- Music Playback: Play, queue, skip, and manage music with Lavalink integration.
- Moderation Tools: Purge messages, log edits/deletes, set/unset log channels, and run giveaways.
- Fun & Games: Russian Roulette, memes, and interactive features.
- Utilities: User info, server info, markdown posting, latency checks.
- Logging: All interactions are logged to a SQLite database for analytics and history.
- Voice TTS: Make the bot speak in voice channels using Google TTS.
- Cog-Based Architecture: Easy to extend and maintain.
- Python 3.10+
- discord.py β Discord API wrapper
- aiohttp β Async HTTP client
- FastAPI β LLM API backend
- LightRAG - Hybrid Graph RAG
- pandas β Data manipulation and logging
- dotenv β Environment variable management
- Lavalink β Music playback
- Google TTS β Text-to-speech
- Logging β Built-in Python logging
Discord Bot/
β
βββ main.py # Main bot file (startup, cog loading, Lavalink setup)
βββ methods.py # Utility functions (conversation history, LLM calls)
βββ requirements.txt # Python dependencies
βββ .env # Environment variables (BOT_TOKEN, API_URL, etc.)
βββ data/ # Database and data files
β βββ chat_log.db # SQLite database (auto-created)
βββ cogs/ # Cog modules directory
β βββ __init__.py
β βββ music.py # Music commands
β βββ moderation.py # Moderation commands
β βββ utility.py # Utility commands
β βββ ai_chat.py # AI chat and TTS commands
β βββ fun.py # Fun commands and games
β βββ events.py # Event handlers
β βββ roast.py # Roasting commands
βββ LLM_server/
β βββ ollama_call.py # FastAPI backend for LLM inference via Ollama
β βββ rag_call.py # Calling Tool for LightRAG API
β βββ web_search.py # Calling Tool for Web_Search API
βββ README.md # Project documentation
git clone https://github.com/AyushSharma297/Discord_Bot.git
cd discord-botpip install -r requirements.txtor
recommended π€
poetry install Create a .env file in the project root:
BOT_TOKEN=your_discord_bot_token
API_URL=http://localhost:8000/ollama_query/
### More in env.exampleFastAPI Backend :
uvicorn LLM_server.ollama_call:app --host 0.0.0.0 --port 8000 --reloadLightRAG :
lightrag-serverLavalink :
java -jar Lavalink.jarpython main.py- Use
!helpin your Discord server to see all available commands. - Chat with Rajjo using
!chat <your message>. - Moderate and manage your server with built-in utilities.
- Play music, run giveaways, and enjoy fun games.
| Command | Description |
|---|---|
!chat <message> |
Chat with Rajjo Gujjar π |
!play <song> |
Play a song or add it to the queue |
!queue |
Show the current music queue |
!skip |
Skip the current track |
!purge <count> |
Delete a specified number of previous messages |
!setlog <channel_name> |
Set the log channel by name |
!unsetlog |
Unset the log channel for this server |
!giveaway <time_in_seconds> <prize> |
Start a giveaway |
!userinfo [member] |
Show information about a user |
!serverinfo |
Show detailed information about the server |
!markdown <channel> [embed=True] <text> |
Send a markdown message to a specified channel |
!roulette [mode] [ante] |
Play Russian Roulette game |
!meme [sort_type] [time_filter] |
Get a random meme from Reddit |
Use the
!helpcommand in your Discord server to discover all available commands and their usage instructions.Pro Tip: The help command will show you the exact syntax, required parameters, and optional arguments for each command, making it easy to use them correctly.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Contributions are welcome! Please open an issue or submit a pull request for improvements or new features. All contributions must follow the Microsoft Open Source Code of Conduct.
For questions, suggestions, or issues, please reach out via GitHub Issues or contact the maintainer.
Rajjo Gujjar π β Stealing Hearts, One Message at a Time!
.png)













