Пример #1
0
 def get_token():
     try:
         return os.environ.get("GeniusToken")
     except KeyError:
         ConfigurationError(
             "could not find environmental variable, GeniusToken")
Пример #2
0
 def get_connection_string():
     try:
         return os.environ.get("ConnectionString")
     except KeyError:
         ConfigurationError(
             "could not find environmental variable, ConnectionString")
Пример #3
0
 def get_cog_root():
     try:
         return os.environ.get("CogRoot")
     except KeyError:
         ConfigurationError(
             "could not find environmental variable, CogRoot")
Пример #4
0
 def get_client_secret():
     try:
         return os.environ.get("GeniusClientSecret")
     except KeyError:
         ConfigurationError(
             "could not find environmental variable, GeniusClientSecret")
Пример #5
0
 def get_client_id():
     try:
         return os.environ.get("DiscordClientId")
     except KeyError:
         ConfigurationError(
             "could not find environmental variable, DiscordClientId")