This is a Discord bot that integrates with LeetCode to provide daily challenges, random problems, user information, and more. It uses discord.js
for interacting with the Discord API and leetcode-query
for fetching data from LeetCode.
- Daily LeetCode Challenge notification
- Deliver random LeetCode problem
- Fetches user contest information
- User-friendly command list
;potd
- Shows the LeetCode Daily Challenge;random
- Shows a random LeetCode problem;user <username>
- Shows user Info;help
- Shows help message
-
Clone the repository:
git clone https://github.com/your-github-username/leetcode-discord-bot.git
-
Navigate to the project directory:
cd DDoL
-
Install the dependencies:
npm install
-
Create a
.env
file in the root directory and add your Discord bot token and channel ID:TOKEN=your-discord-bot-token CHANNEL_ID=your-channel-id
-
Start the bot:
npm run start
-
Invite the bot to your Discord server using the OAuth2 URL generated from the Discord Developer Portal.
-
Use the commands in any channel the bot has access to.
Contributions are welcome! Please raise an issue with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.