Skip to content

FlightVin/CSES-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSES-bot

A program that allows you to submit codes on cses through google chrome from your terminal.

Installation

Set up dependencies and password by running the bash script bot-dependencies.sh

This will also ask for the path to a program that the user wishes to use repeatedly for submissions (Can be left as blank string)

$ bash bot-dependencies.sh

This can be run again to reset passwords and code location (or you could just modify /secret/user-key)

Running

Run the main python script by -

$ python main.py

This can also be made into an alias in ~/.bashrc

Commands

Quitting program

$ quit

- quits the browser
- quits program

Opening a task's prompt -

$ open <task number>

- Opens the task's page on chrome
- lists tasks name on terminal
- lists task section 

Submitting code -

If providing absolute path - $ submit <task number> <location of code>

If using preset path - $ submit <task number> -p

- Submits code
- Prints verdict

About

CLI tool to submit codes on CSES

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages