Discord bot that posts a random leetcode question based on custom commands.
- Clone this project to your system using
cd leetcode-disc-bot
to switch directory to the bot's directorynpm i
ornpm install
to get all its dependencies- Create a
.env
file at the root of the project folder - Add a variable
DISCORD_BOT_TOKEN=
and leave it empty for now. - Now make suu e to create a
New Application
on Discord from their portal- once created, visit its
Bot
tab and grab thetoken
and paste it as the value forDISCORD_BOT_TOKEN
- once created, visit its
- Run the bot using
npm start
and you should be able to use the commands once you invite your own app to a server of your choice.
!problem (without args) - gives you a random problem of any difficulty either paid/free.
!problem <'easy' | 'medium' | 'hard'> - gives you a random freely accessible problem of any difficulty.