Skip to content

prakash-ydv/DiscordBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


BigONerd - AI Powered Discord Bot

A powerful Discord bot that provides DSA challenges, quizzes, memes, topic explanations, and coding stats from LeetCode and GFG! πŸš€

πŸ“Œ Features

βœ… 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! πŸ˜‚


βš™οΈ Tech Stack

πŸ”Ή Node.js – Backend runtime
πŸ”Ή Discord.js – Discord API library
πŸ”Ή Gemini API – For AI-powered responses


πŸ“· Screenshots

DSA Challenge [easy, medium, hard] challenge

AI Explains DSA related Question explain

User Stats of GFG/LeetCode stats

Quic Quiz stats


Add Bot to your Discord Server πŸ‘

https://discord.com/oauth2/authorize?client_id=1349287918622998560&permissions=2147485696&integration_type=0&scope=bot

πŸ›  Setup & Installation

1️⃣ Clone the Repository

git clone https://github.com/prakash-ydv/DiscordBot
cd DiscordBot

2️⃣ Install Dependencies

npm install

3️⃣ Set Up Environment Variables

Create a .env file and add:

TOKEN=your_discord_bot_token
GUILD_ID=your_guild_id
OPENAI_API_KEY=your_openai_key

4️⃣ Start the Bot

node bot.js

πŸ“ Available Commands

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 πŸ˜‚

πŸ“‚ Project Structure

πŸ“ 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

πŸ“ž Contact & Support

πŸ›  Maintainer: Prakash Kumar πŸ“© Issues & Contributions: Open a GitHub issue or PR!


About

A powerful Discord bot that provides DSA challenges, quizzes, memes, topic explanations, and coding stats from LeetCode and GFG! πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages