Giter Club home page Giter Club logo

leetcode-disc's Introduction

Leetcode-discord-bot

Discord bot that posts a random leetcode question based on custom commands.

NOTE: I have an AWS free tier, and have a limit warning in place for the EC2 instance this bot is hosted on. Depending on monthly usage, the service will go down so I don't incur charges for the month. You can check if it's up here (if the status symbol is green, it's up!). Sorry, in advance!

Installation and running locally

  1. Clone this project to your system using
git clone https://github.com/chakrakan/leetcode-disc.git
  1. cd leetcode-disc to switch directory to the bot's directory
  2. npm i or npm install to get all its dependencies
  3. Create a .env file at the root of the project folder
touch .env

Add a variable DISCORD_BOT_TOKEN= and leave it empty for now.

  1. Now make sure to create a New Application on Discord from their portal
    • once created, visit its Bot tab and grab the token and paste it as the value for DISCORD_BOT_TOKEN
  2. Run the bot using npm start and you should be able to use the commands once you invite your own app to a server of your choice.

Usage

Regular Commands

!problem (without args) - gives you a random problem of any difficulty either paid/free.
!problem info - gives you an overview of problems and your progress (WIP)
!problem free - gives you a random freely accessible problem of any difficulty.
!problem paid - gives you a random paid/locked problem of any difficulty.

Adding difficulty modifiers:

!problem <free | paid> <easy | medium | hard> - lets you pick a random free or paid problem of the chosen difficulty.

Sample

ToDo

  • add more feature for per user experience See #1

leetcode-disc's People

Contributors

chakrakan avatar dependabot-preview[bot] avatar imgbotapp avatar renovate-bot avatar renovate[bot] avatar

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.