1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 18:03:12 +00:00

chore: Update .env.example and lib/constants.py

This commit is contained in:
wlinator 2024-07-17 05:22:35 -04:00
parent 10a45dd85c
commit 49da036d5a
2 changed files with 17 additions and 2 deletions

15
.env.example Normal file
View file

@ -0,0 +1,15 @@
TOKEN=
INSTANCE=BETA
OWNER_IDS=
XP_GAIN_PER_MESSAGE=1
XP_GAIN_COOLDOWN=8
DBX_OAUTH2_REFRESH_TOKEN=
DBX_APP_KEY=
DBX_APP_SECRET=
MARIADB_USER=wlinator
MARIADB_PASSWORD=
MARIADB_ROOT_PASSWORD=
MARIADB_DATABASE=lumidb

View file

@ -18,10 +18,10 @@ class Constants:
OWNER_IDS: Optional[Set[int]] = (
{
int(id.strip())
for id in os.environ.get("OWNER_ID", "").split(",")
for id in os.environ.get("OWNER_IDS", "").split(",")
if id.strip()
}
if os.environ.get("OWNER_ID")
if os.environ.get("OWNER_IDS")
else None
)