Skip to content

Set up .env

Nicholas Bottone edited this page May 5, 2023 · 2 revisions

You must create a file in the same directory as your executable called .env containing the necessary environment variables. Copy the file .env.example and fill in the necessary environment variables with information about your GCP JSON key and your Google Sheet. You can find GOOGLE_SHEET_CLIENT_EMAIL as client_email and GOOGLE_SHEET_PRIVATE_KEY as private_key in the key JSON. Your GOOGLE_SHEET_DOC_ID is the long string of characters from the URL of the Google Sheet. Also be sure to include your Discord bot token (provided on the Discord developers portal), the guild ID of the server you wish to run a tourney in, and the channel ID of the text channel you wish to use as an event feed.

For more information about how to set up your Google Sheet or your Google Cloud Platform (GCP) service account, see the corresponding page.

For more information about how to set up your Discord bot application, see the corresponding page.