A Discord bot that helps with IPMAT preparation by generating idioms flashcards using AI.
You can add this to your server by clicking this link
Video Demo @ https://www.youtube.com/watch?v=B5xqdYo70KY
- Generate idioms flashcards with meanings and examples
- Generate vocabulary flashcards with definitions and examples
- NEW: Reading comprehension quizzes with 15-minute timer
- NEW: Live leaderboard system for competitive learning
- Supports both slash commands and message commands
- Customizable quantity (1-20 for flashcards)
- Difficulty levels: Easy, Medium, Hard
- Beautiful embed responses with loading animations
- Install dependencies:
bun install- Create a
.env.localfile with your Discord bot credentials:
DISCORD_TOKEN=your_bot_token_here
CLIENT_ID=your_client_id_here- Generate an invite link to add the bot to your server:
bun run invite- Run the bot:
bun run index.tsbun start- Run the bot in productionbun run dev- Run the bot in development mode with auto-reloadbun run invite- Generate an invite link to add the bot to Discord servers
/idioms [quantity] [difficulty]- Generate idioms flashcards (slash command)!idioms [quantity] [difficulty]- Generate idioms flashcards (message command)/vocab [quantity] [difficulty]- Generate vocabulary flashcards (slash command)!vocab [quantity] [difficulty]- Generate vocabulary flashcards (message command)
/quiz [difficulty]- Start a 15-minute reading comprehension quiz for everyone!quiz [difficulty]- Start a 15-minute reading comprehension quiz (message command)/answer answers:"A B C D A"- Submit your quiz answers (slash command)!answer A B C D A- Submit your quiz answers (message command)/leaderboard- Show current quiz leaderboard (slash command)!leaderboard- Show current quiz leaderboard (message command)
Parameters:
quantity(optional): Number of flashcards to generate (1-20, default: 5)difficulty(optional): Difficulty level - easy, medium, or hard (default: medium)answers: Your quiz answers as letters A, B, C, D separated by spaces
Quiz Rules:
- Each quiz contains 5 reading comprehension questions
- Time limit: 15 minutes
- Only one quiz can be active per channel at a time
- Each user can submit answers only once per quiz
- Leaderboard ranks by score, then by submission time
The bot requires the following permissions:
- View Channels
- Send Messages
- Embed Links
- Read Message History
- Read Message Content (for message commands)
- Use Slash Commands
These permissions are automatically included when using the generated invite link.
Where AI was used to generate code - for creating deduplication, contentlogging and generating prompts
This project was created using bun init in bun v1.2.17. Bun is a fast all-in-one JavaScript runtime.