-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.env
36 lines (21 loc) · 1.17 KB
/
model.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# .env: file containing text variables, considered by Python as environment
# variables thanks to dotenv.loadenv() and then accessible through os.getenv
# Here should be put:
# - everything sensitive (acces tokens to different APIs, ...) ;
# - every parameter that may change from a season to another (server ID, ...).
# EVERY VARIABLES WILL BE READ AS STRINGS, even if written without quote marks.
# Itegers/... stored here will need to be transformed after os.getenv call.
# -- Database
export LGREZ_DATABASE_URI="protocol://user:password@host/base"
# -- Discord
export LGREZ_DISCORD_TOKEN="..."
export LGREZ_SERVER_ID="..."
# -- Google Sheets
export LGREZ_GCP_CREDENTIALS="{\"type\": \"service_account\", \"project_id\": \"<id>\", ...}"
export LGREZ_TDB_SHEET_ID="<(URL part between '/d/' and '/edit')>"
export LGREZ_ROLES_SHEET_ID="<(URL part between '/d/' and '/edit')>"
export LGREZ_DATA_SHEET_ID="<(URL part between '/d/' and '/edit')>"
# Reminder: the sheets need to be shared with GCP_CREDENTIALS["client_email"]
# (as an Editor) to grant the bot read and write rights.
# -- Configuration status: set it to "1" when everything is functionnal
export LGREZ_CONFIG_STATUS="0"