From 22ba71afe465b43abbe5c2022599c8ee7d8c52f6 Mon Sep 17 00:00:00 2001 From: Angerstoner Date: Wed, 6 Feb 2019 17:37:43 +0100 Subject: [PATCH] fixed codinglove image fetch problems --- coding_love.py | 2 +- schneiderbot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coding_love.py b/coding_love.py index c8edffa..e4208a7 100644 --- a/coding_love.py +++ b/coding_love.py @@ -12,7 +12,7 @@ def send_coding_love_gif(bot, update): gif_match = re.search('data="(.*)" type="image/gif"', random_page_content) if gif_match is None: - gif_match = re.search('og:image" cont ent="(.*)"', random_page_content) + gif_match = re.search('og:image" content="(.*)"', random_page_content) if gif_match: gif_url = gif_match.group(1) diff --git a/schneiderbot.py b/schneiderbot.py index dd113b5..f698933 100755 --- a/schneiderbot.py +++ b/schneiderbot.py @@ -185,7 +185,7 @@ def error(bot, update, error): def main(): """Start the bot.""" # Create the EventHandler and pass it your bot's token. - token = open("token").read() + token = open("test_token").read() updater = Updater(token.strip()) # Get the dispatcher to register handlers