From 2709d98cc936f07aaa47e10e78300439973c86d1 Mon Sep 17 00:00:00 2001 From: Hammy Date: Tue, 16 Feb 2021 23:57:50 +0000 Subject: [PATCH] Change path for Lambda --- bot/winston.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/winston.py b/bot/winston.py index a7d4335..c223566 100644 --- a/bot/winston.py +++ b/bot/winston.py @@ -15,7 +15,7 @@ class Winston: app_key=get_secret("CONSUMER_KEY"), app_secret=get_secret("CONSUMER_SECRET"), oauth_token=get_secret("ACCESS_TOKEN_KEY"), - oauth_token_secret=get_secret("ACCESS_TOKEN_SECRET"), + oauth_token_secret=get_secret("ACCESS_TOKEN_SECRET") ) self.potential_tweets = [ "@PlayOverwatch I didn't pay my taxes!", @@ -65,7 +65,7 @@ class Winston: text = text_and_media[0] filename = text_and_media[1] - path = f"./media/{filename}" + path = f"./bot/media/{filename}" media = open(path, 'rb') try: