Skip to content

xDDoubleTea/LeetCodeBot

LeetCode Discord Bot

How to run this bot

Prerequisites

Ensure git, uv, python are installed on your system.

Run these commands in your terminal

git clone https://github.com/xDDoubleTea/LeetCodeBot
cd LeetCodeBot
uv run main.py

Visual studio code

If you prefer GUI and you use vscode, you can use the built-in Clone repository function to clone this repository. Also make sure to run uv sync for code completions to work properly in vscode!!!

Features

  • Discuss LeetCode problems with friends in your Discord server.
  • Get problem details, solutions, and hints directly in chat.
  • Track your LeetCode progress and share achievements.
  • Supports daily challenges.

Usage

Command Description Admin Only
/help Gets help about the bot's commands. No
/daily Gets today's LeetCode problem. No
/problem [id] Gets a LeetCode problem by its ID. No
/desc [id] Gets a LeetCode problem description by its ID. No
/migrate Migrates from the old threads. No
/set_forum_channel Sets the forum channel for problems. Yes
/refresh Refreshes the LeetCode problems cache. Yes
/ping Checks the bot's latency. No
/check_leetcode_api Checks the LeetCode API status. No
/statistics [username] Gets user statistics by LeetCode username. No

Roadmap

  • Get problem details by ID and create a thread in discord
  • Get daily challenge problem and create a thread in discord
  • Get problem details by title slug and create a thread in discord
  • Chinese support
  • Get user statistics
  • Per guild leaderboards
  • Documentation
  • Probably submit directly from discord?
  • Migrate to postgresql probably

Tech Stack

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages