A command-line interface tool for submitting solutions to the Popcorn Discord Bot
- Download the latest release for your platform from the releases page
- Extract the archive
- Move the binary to a location in your PATH
This app is written in Rust, so you can just install it via cargo install
Set the POPCORN_API_URL
environment variable to the URL of the Popcorn API. You can get this from the GPU Mode Discord server.
Then, you need to be registered to use this app. You can register by running: popcorn-cli register [discord|github]
. We strongly reccomend using your Discord account to register, as this will match your submissions to your Discord account.
Once you're registered, there is a file created in your $HOME
called .popcorn-cli.yaml
that contains your registration token. This token is sent with each request.
If you want to re-register (you can do this any number of times), you can run popcorn-cli reregister [discord|github]
.
After this, you can submit a solution by running:
popcorn-cli submit <submission-file>
The interactive CLI will guide you through the process of:
- Selecting a leaderboard
- Selecting GPU options
- Setting submission mode
- Submitting your work