A discord bot which helps speed up migration VOJ problems to Codeforces by using polygon, codeforces APIs.
- Give permission access of a (list of) problem(s) to other users.
- Create new mashup using polygon links
- Edit mashup information
- Run package solutions
- Add mashup contest to a codeforces group
- Manage:
- Staff list
- Problems list: see doing problems, deleted problems, reviewed problems ...
- Some git commands to update the bot.
- Some commands about nCoVi virus.
Clone this repository
python pip install -r requirements- Base on file
.env-example, create file.envand fill all the data: bot token, account polygon (for polygon commands), account codeforces (for codeforces commands), ...
- Create a discord bot, add it to your discord server.
- Then use
python main.pyto run the bot. Remember to edit data in.env. - Use
;rebuild helpto see list command
- There is some commands required
Adminrole. If you're not bot's owner, you will needAdminrole to use those commands. - You can update the bot (get new commit from this repository) by using
;rebuild git_pullcommand. Then you can use;rebuild restartto restart the bot (you don't need to run it again, it's very useful since I'm running the bot in a VPS).
Since the bot doesn't need many APIs, I didn't add all the API I have into services but I'll upload it soon (in an other repository).
Currently, for polygon APIs, you can see this repository (written in nodejs).