示例#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")