Giter Site home page Giter Site logo

meanmachin3 / leetcode-bot Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 0.0 574 KB

Discord bot that sends leetcode questions every Monday to Friday to practise your algorithmic skills

License: MIT License

JavaScript 94.18% Nearley 5.71% Procfile 0.12%
leetcode discord-bot discord-js algorithms

leetcode-bot's Introduction

Bot

Discord bot that sends leetcode questions every Monday to Friday to practise your algorithmic skills

Running application locally

  1. Clone this repositry https://github.com/meanmachin3/leetcode-bot.git

  2. Create your bot token over here

  3. create .env file

  4. mv env.sample .env

  5. Paste your env settings

  6. node index.js

Deploy Bot to Heroku

Deploy HGE on heroku

After deploying, add the following environment variables

GUILD: your_server_name
CHANNEL: your_channel_name_to_post
BOT_TOKEN: bot_token
LEETCODE_LOGIN: leetcode_user_name
LEETCODE_PASS: leetcode_pass_word

Save changes.

Server configuration

  1. Go to Resources
  2. Scale down your web worker
  3. Scale up your worker node

Usage

  1. !help: To see list of commands available
  2. !submit: To submit code directly from server to leetcode

Screenshots

submit

leetcode-bot's People

Contributors

meanmachin3 avatar dependabot[bot] avatar

Stargazers

Ethan avatar  avatar Grad avatar  avatar  avatar  avatar  avatar Rafa B avatar Evelyn Lu avatar Vasu Negi avatar Annabel Bland avatar Niyati avatar Amit Bhadra avatar Shaishav Shah avatar Azhar Deen avatar Vincent avatar

Watchers

James Cloos avatar  avatar

leetcode-bot's Issues

Logging issue with leetcode

leetcode-cli is no longer maintained for more than a year now.

At the same time, looks like the plugin is actively blocked by leetcode.com and upon login it gives you captcha to solve. Possible solution could be explored over #195

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.