- A simple bot that fetches the daily problem from LeetCode.com with the use of a Discord command.
Install the following packages using pip
- discord.py
- requests
- Add a new application and bot user to your Discord account, (on the Discord Developer Portal https://discord.com/developers/applications) then invite your bot to a server you manage:
https://discordapp.com/oauth2/authorize?client_id=CLIENT_ID&scope=bot&permissions=3072 (change CLIENT_ID to your application's client_id)
-
In discordc.py you need to input your bot user's token
-
Once these steps are done go ahead and start the bot by something like 'python3 discordc.py'
- Type !leetcode to make the bot fetch the daily problem.