LeetBot
LeetBot is a Discord bot designed to enhance your programming skills by delivering daily LeetCode challenges directly to your Discord server. It automates the process of posting new challenges, tracking user submissions, and maintaining a leaderboard to showcase top performers.
Features
- Daily LeetCode Challenges: Automatically posts a new LeetCode challenge in your specified Discord channel every 24 hours.
- Submission Tracking: Tracks users who successfully solve the daily challenge.
- Leaderboard: Maintains a leaderboard to rank users based on the number of challenges they've solved.
Usage
To use LeetBot in your Discord server, follow these steps:
Invite LeetBot to Your Server:
Use the following invite link to add LeetBot to your Discord server.
Set Up Environment Variables:
- Create a .env file in the root directory of your project.
- Define the following environment variables:
API_URL=your_leetcode_api_url_here
BOT_TOKEN=your_discord_bot_token_here
CHANNEL_ID=your_discord_channel_id_here
DATABASE_FILE=your_sqlite_db_filename_here
EMBED_NAME=your_embed_name_here
EMBED_URL=your_embed_url_here
EMBED_ICON_URL=your_embed_icon_url_here
EMBED_THUMBNAIL_URL=your_embed_thumbnail_url_here
- Or see the
.env.example
file.
Install Dependencies:
Run the Bot:
Interact with LeetBot:
- Use the !daily command in your Discord server to fetch and display the daily LeetCode challenge.
- Users can solve the challenge and submit their solutions. LeetBot will track their progress automatically.
View Leaderboard:
- Check the leaderboard periodically to see who has solved the most challenges.
Contributing
- Contributions to LeetBot are welcome! If you have any ideas for new features, improvements, or bug fixes, feel free to create an issue or submit a pull request.