1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
royalnet/royalbotconfig.py

19 lines
445 B
Python
Raw Normal View History

import os
class MissingTokenError(Exception):
pass
if "telegram_token" in os.environ:
telegram_token = os.environ["telegram_token"]
else:
raise MissingTokenError("telegram_token")
if "discord_token" in os.environ:
discord_token = os.environ["discord_token"]
else:
raise MissingTokenError("discord_token")
2017-04-26 08:46:36 +00:00
if "lol_token" in os.environ:
lol_token = os.environ["lol_token"]
else:
2017-04-26 08:46:36 +00:00
raise MissingTokenError("lol_token")