-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add initial tournament setup script
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
CLI_CMD="${1:-cli}" # in prod change to cli:prod e.g., `./setup.sh cli:prod` | ||
|
||
## create February 2024 Mars Madness tournament + Round 1 structure | ||
|
||
npm run ${CLI_CMD} -- tournament create --tournamentName="2024-02 Mars Madness" --description="The next Mars Madness tournament begins February 8, 2024! Top-scoring players on surviving teams will advance to the next round. Players who make it to the championship round will receive a Port of Mars T-shirt, and the winner of the championship will receive the top prize of \$500 USD! Winners of surviving groups in the first round will also receive a \$10 Amazon gift card." | ||
npm run ${CLI_CMD} -- tournament treatment add --treatmentIds 1 2 3 | ||
npm run ${CLI_CMD} -- tournament round create --introSurveyUrl=https://asu.co1.qualtrics.com/jfe/form/SV_0c8tCMZkAUh4V8x --exitSurveyUrl=https://asu.co1.qualtrics.com/jfe/form/SV_6FNhPbsBuybTjEN --announcement="REGISTRATION FOR ROUND 1 IS NOW OPEN. Register, complete the Port of Mars Mission Control onboarding, and sign in during a scheduled launch time to compete in the next Mars Madness tournament!" | ||
# set up 3 launch dates per day from 2024-02-08 to 2024-02-21 | ||
for day in {08..21}; do | ||
npm run ${CLI_CMD} -- tournament round date --date="2024-02-${day}T17:00:00-07:00"; | ||
npm run ${CLI_CMD} -- tournament round date --date="2024-02-${day}T20:00:00-07:00"; | ||
npm run ${CLI_CMD} -- tournament round date --date="2024-02-${day}T22:00:00-07:00"; | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters