Skip to content

KiranBaliga/DDoL

 
 

Repository files navigation

Daily Dose of Leetcode

Discord License: MIT Visitors
Invite Me Join Community

Introduction

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.

Features

  • Daily LeetCode Challenge notification
  • Deliver random LeetCode problem
  • Fetches user contest information
  • User-friendly command list

Commands

  • ;potd - Shows the LeetCode Daily Challenge
  • ;random - Shows a random LeetCode problem
  • ;user <username> - Shows user Info
  • ;help - Shows help message

Installation

  1. Clone the repository:

    git clone https://github.com/your-github-username/leetcode-discord-bot.git
  2. Navigate to the project directory:

    cd DDoL
  3. Install the dependencies:

    npm install
  4. 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
    

Usage

  1. Start the bot:

    npm run start
  2. Invite the bot to your Discord server using the OAuth2 URL generated from the Discord Developer Portal.

  3. Use the commands in any channel the bot has access to.

Contributing

Contributions are welcome! Please raise an issue with your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Don't forget to give us a ⭐

About

Daily Dose of Leetcode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%