mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 11:34:18 +00:00
19 lines
470 B
Python
19 lines
470 B
Python
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")
|
|
|
|
if "discord_webhook" in os.environ:
|
|
discord_webhook = os.environ["discord_webhook"]
|
|
else:
|
|
raise MissingTokenError("discord_webhook")
|