Submission Downloading

Command

Description

!downloadsubs dmoj [dmoj username] [api token]

Downloads the latest AC submission for each solved problem on dmoj. Go to https://dmoj.ca/edit/profile/ to generate a new api token for your account.

!downloadsubs cf [codeforces username] {codeforces password}

Downloads the latest AC submission for each solved problem on codeforces.

If you provide your password, the bot will be able to download problems from codeforces gyms and the Acmsguru problem set.

!downloadsubs [mcpt | ccoj | tssoj | ...] [username] [api token]

Submission downloading also works for any website with a .ca domain that uses dmoj's api v2.

When you run this command, the bot will automatically delete your message to hide your token or password. To increase security, you can direct message the bot and change your token or password when you are done.