mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-02 20:23:12 +00:00
chore: Update .env.example and lib/constants.py
This commit is contained in:
parent
10a45dd85c
commit
49da036d5a
2 changed files with 17 additions and 2 deletions
15
.env.example
Normal file
15
.env.example
Normal 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
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue