This repository contains scripts for managing ticket raffles for PSG football matches. It automates the process of setting up pages with the correct pricing and date details for each match.
These scripts help initialize pages with the necessary information whenever a PSG football match is scheduled. Following this setup, a raffle is conducted to distribute the tickets.
git clone https://github.com/sunix/pastorebot
cd pastorebot
Edit the .clasp.json
file:
- Replace the root folder.
- Replace the Google App Script ID with your project’s Script ID. You can find it in Extensions > Apps Script > Project Settings > Script ID.
clasp login
After setting up the repository, you can make necessary modifications to the scripts as needed.
Once your modifications are complete, synchronize them with the main Google App Script repository:
clasp push
- Google App Script ID: The example uses a placeholder script ID. Set up your own script and update the
.clasp.json
file accordingly.
Here’s how the repository was initially set up from an existing Google App Script:
clasp login
mkdir pastorebot
cd pastorebot/
clasp clone 1Ab2Cd3EfGh_IjKlMnO--pQrStUvWxYz456-7890wJXsQNiKvJidRAUra
Note: The above Google App Script ID is a placeholder. Replace it with your actual script ID.
The clone operation should retrieve files like appsscript.json
and Code.js
. Pay attention to any files not ignored by .clasp
.
code .