Skip to content

Downloads the test cases from CODEFORCES and adds templates for selected default language(c, cpp, py)

License

Notifications You must be signed in to change notification settings

rahulbollisetty/CFbot

Repository files navigation

CFbot

Downloads the test cases from CODEFORCES and adds templates for selected default language(c, cpp, python)

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Things you need to have before installing this bot.

python3
pip3
git

Installing

From Source

For linux

git clone https://github.com/rahulbollisetty/CFbot
cd CFbot

To install all dependencies used, enter:

pip3 install -r requirements.txt

To setup the initial folders and executabe files enter:

python3 initial.py

Default language is set to cpp , to change the default to (py or c or cpp) enter:

python3 change.py --l {extension of your desired language}

For example, to change the default language to c:

python3 change.py --l c

Note- In order to change the default language you need to be in the CFbot directory

Running the bot

The bot is designed in such a way that you need not to have the scripts in your working directory, to run the bot enter

cf

You will be asked the contest id, so enter the last numeric digits of the respective contest url For example, if your respective contest site is https://codeforces.com/contest/1347 , then 1347 is the id you need to enter

$enter the contest id
1347

Built With

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Downloads the test cases from CODEFORCES and adds templates for selected default language(c, cpp, py)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published