diff --git a/launch.py b/launch.py index 8a6d00cbc12666b40cc82a5dac1f390af4e4b960..fd8c8466e1a076e5d1573087b0947ee18b557531 100644 --- a/launch.py +++ b/launch.py @@ -14,6 +14,7 @@ SECRET = os.getenv('REDDIT_SECRET') REDDIT_ID = os.getenv('REDDIT_ID') REDDIT_AGENT = os.getenv('REDDIT_AGENT') +PROXY = os.getenv('PROXY') postLimit = int(os.getenv('POST_LIMIT')) subreddits = dict() @@ -75,7 +76,11 @@ def create_embed(post,author,posturl): return embed refresh_all_posts() -client = discord.Client() + +if PROXY != "": + client = discord.Client(proxy=PROXY) +else: + client = discord.Client() @client.event async def on_ready():