This bot is created to remind you to revise the exercises you have done on leetcode after a period of time.
I used this API to get 20 latest accepted submission. The example data I got when query this API is included in the file submission_data.txt. Then I parse it and save it in SQL Lite database. After a while, the bot will automatically reload the data, update the database and perform the search. Currently I set it to 12 hours because I want a reminder after waking up to know what exercises I need to do today and one before going to bed to encourage myself that I did a good job.
I recommend you to use a virtual machine for convenience, I'm using google cloud now.
python --version
sudo apt install python3-pip
pip3 install -r requirements.txt
ACCOUNT_USER in here is huyhoang3082001
BOT_TOKEN will get from Discord Developer Portal -> Bot -> Token (you can click Reset Token)
BOT_TOKEN=
ACCOUNT_USER=
