mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-17 11:10:13 +00:00
Whoops, forgot environment variables were case sensitive
This commit is contained in:
parent
942f7cd0ab
commit
6f91fdfcc5
1 changed files with 2 additions and 2 deletions
|
|
@ -13,9 +13,9 @@ except ImportError:
|
||||||
with open(sys.argv[1] if len(sys.argv) > 1 else "pluralkit.conf") as f:
|
with open(sys.argv[1] if len(sys.argv) > 1 else "pluralkit.conf") as f:
|
||||||
config = json.load(f)
|
config = json.load(f)
|
||||||
|
|
||||||
if "database_uri" not in config and "database_uri" not in os.environ:
|
if "database_uri" not in config and "DATABASE_URI" not in os.environ:
|
||||||
print("Config file must contain key 'database_uri', or the environment variable DATABASE_URI must be present.")
|
print("Config file must contain key 'database_uri', or the environment variable DATABASE_URI must be present.")
|
||||||
elif "token" not in config and "token" not in os.environ:
|
elif "token" not in config and "TOKEN" not in os.environ:
|
||||||
print("Config file must contain key 'token', or the environment variable TOKEN must be present.")
|
print("Config file must contain key 'token', or the environment variable TOKEN must be present.")
|
||||||
else:
|
else:
|
||||||
from pluralkit import bot
|
from pluralkit import bot
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue