8000 GitHub - Bahaaio/leet-bot: A lightweight Discord bot that brings LeetCode problems, daily challenges, solutions, and user stats into your server. · GitHub
[go: up one dir, main page]

Skip to content

Bahaaio/leet-bot

Repository files navigation

leet-bot

A Discord bot for LeetCode practice. Get daily challenges, random problems, and view user profiles.

Commands

Command Description
/daily Get today's LeetCode daily coding challenge
/problem [difficulty] Get a random LeetCode problem (optionally filter by Easy/Medium/Hard)
/solution <id> <language> Get the solution for a specific LeetCode problem in the specified language
/profile <username> View a LeetCode user's profile, stats, and social links

Setup

Prerequisites

Installation

git clone https://github.com/Bahaaio/leet-bot.git
cd leet-bot
npm install

Configuration

Create a .env file in the root directory:

TOKEN="YOUR_BOT_TOKEN"
CLIENT_ID="YOUR_CLIENT_ID"
Field Description
token Your Discord bot token
clientId Your Discord application ID

Deploy Commands

Register slash commands with Discord:

npm run deploy

Run

npm start

Scripts

Script Description
npm start Start the bot
npm run deploy Register slash commands with Discord
npm run delete Remove slash commands from Discord
npm run lint Run ESLint
npm run format Format code with Prettier

License

MIT

About

A lightweight Discord bot that brings LeetCode problems, daily challenges, solutions, and user stats into your server.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

0