From b57c756ac24866ee59893b713a92614619cf8f73 Mon Sep 17 00:00:00 2001 From: Angerstoner Date: Mon, 11 Feb 2019 13:33:10 +0100 Subject: [PATCH] small refac --- reddit.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/reddit.py b/reddit.py index 556213f..ad7401d 100644 --- a/reddit.py +++ b/reddit.py @@ -25,11 +25,7 @@ def get_reddit_instance(): def wrong_dog(bot, update): - reddit_instance = get_reddit_instance() - - sub = reddit_instance.subreddit('whatswrongwithyourdog') - post = sub.random() - update.message.reply_text("This dog has serious issues: %s" % post.url) + reddit(bot, update, ['whatswrongwithyourdog']) def hamster(bot, update):