A Discord bot that gets Leetcode problems directly in the Discord chat.
This Discord bot allows users to get Leetcode problems directly in the Discord chat. The bot will search the problem based on its title or ID and return the prompt, sample input, and sample output.
- Search Leetcode problems by difficulty (easy-medium-hard)
- Set timer to sent a new problem
-
Clone the repository to your local machine:
https://github.com/MohamedAmgad2002/leetcodeBot.git
-
Install the required packages:
pip install -r requirements.txt
-
Rename
.env.example
to.env
and fill in your Discord bot token -
Start the bot:
python main.py
The bot can be invoked in any Discord text channel by using the following command syntax:
.prob [problem diffiecultiy]
You can know more commands by using the following command syntax:
.help
We welcome contributions to this project. If you have any suggestions or bug reports, please create an issue or a pull request.
This project is licensed under the MIT license.