A powerful Discord bot that provides DSA challenges, quizzes, memes, topic explanations, and coding stats from LeetCode and GFG! π
β
DSA Challenges β Get random DSA problems based on difficulty.
β
GFG & LeetCode Stats β Fetch your latest coding stats from GeeksforGeeks & LeetCode.
β
DSA Quiz β Participate in fun DSA quizzes with automatic answer checking.
β
Topic Explainer β Ask the bot to explain any programming topic. π
β
Funny Memes & Jokes β Get random DSA-related memes & jokes for a good laugh! π
πΉ Node.js β Backend runtime
πΉ Discord.js β Discord API library
πΉ Gemini API β For AI-powered responses
DSA Challenge [easy, medium, hard]

AI Explains DSA related Question

https://discord.com/oauth2/authorize?client_id=1349287918622998560&permissions=2147485696&integration_type=0&scope=bot
git clone https://github.com/prakash-ydv/DiscordBot
cd DiscordBotnpm installCreate a .env file and add:
TOKEN=your_discord_bot_token
GUILD_ID=your_guild_id
OPENAI_API_KEY=your_openai_key
node bot.js| Command | Description π |
|---|---|
/challenge |
Get a random DSA problem based on difficulty π― |
/dsaquiz |
Participate in a DSA quiz with auto-checking π |
/gfgstats |
Fetch your GFG profile stats π |
/leetcodestats |
Fetch your LeetCode stats π |
/explain <topic> |
Get a simple explanation for a DSA topic π |
/dsameme |
Get a funny DSA meme or joke π |
π discord-dsa-bot
β£ π API
β β£ π aiCalls.js # Handles AI-powered
β β£ π gfgAPI.js # Fetches GFG user stats
β β£ π leetcodeAPI.js # Fetches LeetCode user stats
β£ π commands
β β£ π challenge.js # Handles DSA challenge command
β β£ π dsaquiz.js # Handles quiz command
β β£ π explain.js # Handles topic explanations
β β£ π gfgstats.js # Fetches GFG stats
β β£ π leetcodestats.js # Fetches LeetCode stats
β£ π bot.js # Main bot file
β£ π package.json # Dependencies & scripts
β£ π .env # Environment variables
π Maintainer: Prakash Kumar π© Issues & Contributions: Open a GitHub issue or PR!

