10
If you're a recurser, ping me on Zulip for any questions.
If you're a vertical flat plate, ping me on Slack for any questions.
The Daily Leetcode Bot can post questions from leetcode.com to Zulip or Slack every day.
It is primarily intended to be used for the Recurse Center but it can be easily configured to post with any frequency to any Zulip realm or Slack workspace.
To run this bot you must have Node.js installed.
The bot can be configured by using the following environment variables:
-
Zulip
ZULIP_USERNAME
- the e-mail address of your Zulip botZULIP_API_KEY
- the API_KEY of your Zulip botZULIP_REALM
- your Zulip Realm or the https address of your Zulip instance
You can also place a zuliprc at the root of this repo.
-
Slack
DLB_SLACK_WEBHOOK
- the webhook URL for an incoming webhook
-
Bot
- Clone this repo
- Install dependencies
npm install
- Run the bot
npm start
This repository is composed of three main files.
The business logic for the bot and where all the configuration gets applied.
GraphQL queries that can be used with the Leetcode API.
Unfortunately the Leetcode API is not documented but useful information about it can be found here, here, and by searching the intertubez.
A JSON dataset containing the problems found here which were compiled by the talented @yangshun.
Please read our Code of Conduct
Please create an issue if you want to submit a PR and link it to your PR with one of these keywords.
Feel free to create issues for any bugs or feature requests. If submitting a bug, please include as many details as possible. Including, but not limited to, reproduction steps, logs, and screenshots that show the problem.