Welcome to the LeetCode Questions Solved Discord Bot repository! This bot is designed to help users track and display the number of LeetCode questions solved by different members of your Discord server.
-
User Stats: Retrieve the number of LeetCode questions solved by a user using their LeetCode username.
-
Interactive Commands: Use simple commands to interact with the bot and gather information.
- Clone this repository to your local machine:
git clone https://github.com/BradenStitt/LeetcodeDiscordBot.git
- Install the Required Python Packages
pip install -r requirements.txt
- Create a Discord bot by following the instructions in the Discord Developer Portal. Once your bot is created, obtain its token.
- In the root directory of your bot's project, create a
.envfile. Add your bot token to this file using the following format: - Generate an OAuth2 URL for your bot in the Discord Developer Portal. Use this URL to invite your bot to your Discord server.
- Open your terminal and navigate to your bot's project directory. Run the bot using the following command:
python bot.py
-
Use the
!leetcode <leetcode_username>command to get the number of LeetCode questions solved by a user shown in the current channel. For example,!leetcode john_doe. -
Use the
?leetcode <leetcode_username>command to get the number of LeetCode questions solved by a user sent via DM. For example,?leetcode john_doe. -
Use the
!helpcommand to get a list of available commands.
This project is licensed under the MIT License.