KevzPeter / LeetCode-Daily-Challenge-Bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Logo

LeetCode Daily Challenge Bot

Ain't got time to solve the daily challenge ? Use this instead!
Explore the docs »

Report Bug · Request Feature

Table of Contents
  1. Usage
  2. Roadmap
  3. Contributing

Prerequisites

The 🤖 bot requires Node.js to run.

Installation

  1. Clone the repo

    git clone https://github.com//KevzPeter/LeetCode-Daily-Challenge-Bot.git
  2. Install NPM packages

    npm install
  3. Add your LeetCode credentials as environment variables using the following Keys:

    1. LEETCODE_USERNAME
    2. LEETCODE_PASSWORD

    OR

    Add your LeetCode credentials within credentials.json file

    {
      "USERNAME": "enter your username here",
      "PASSWORD": "enter your password here"
    }
    
  4. Restart your IDE/Terminal for your environment variables to get loaded successfully. (Not required for option 2 in step 3)

(back to top)

Usage

Run the following command and sit back and relax 🍸

   npm run bot

If you want to switch languages, add the following flag:

   npm run bot --lang=Java

Accepted languages [C++, Java, Python3] (default = C++)

(back to top)

Roadmap

  • Provide option to choose programming language (Currently supports C++ or whatever's available in the first tab in the editorial)
  • Bypass Recaptcha
  • Fix MacOS bug

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Any contributions you make are greatly appreciated.

Don't forget to give the project a ⭐ STAR ⭐! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

About


Languages

Language:JavaScript 100.0%