cf-bot is a Discord bot that interacts with the codeforces API. It provides simple yet useful commands to give you and your teammates information without needing to leave the lobby.
!help- List every available command!help [command]- List information on a specific command
!user [handles]- List information on the specified users (3 at maximum)
!contest- List every upcoming contest!contest [div_number]- List every upcoming contest for a specific division
!problem- Selects a random problem!problem [tags]- Selects a random problem with given tags- list of tags
- multi-word tags must use underscore (_) as separator
!solution problem_name- bot will shame you by solving the problem you're stuck at while in-contest
Before anything, follow this guide and save the token for later use.
- Install Node.js ( version >= v8.11.3)
- Download cf-bot
git clone https://github.com/brunoccast/cf-bot.git cdto cf-bot and runnpm install- Edit the file
config.jsonand use your previously generated token in the correct configuration spot:"token": "paste_your_token_here". You can also change theprefixconfiguration to whatever prefix you want to use for the commands. - Run
npm run build && node ., your bot should now be online and ready to use!
Just run git pull && npm install && npm run build inside cf-bot folder and
you're ready to start the bot again.
Released under the MIT License