From f35ebc5370426fe8da974bbb3e4b54746e76451d Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sun, 19 Aug 2018 12:23:26 -0700 Subject: [PATCH] Try to notify @captbaritone if we need more skins reviewed --- experiments/tweetBot/tweet.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/experiments/tweetBot/tweet.py b/experiments/tweetBot/tweet.py index b002f270..f4856417 100755 --- a/experiments/tweetBot/tweet.py +++ b/experiments/tweetBot/tweet.py @@ -32,7 +32,7 @@ from discord_hooks import Webhook from config import CONFIG -def tweet(text, img_path): +def tweet(text, img_path=None): api = twitter.Api( consumer_key=CONFIG["consumer_key"], consumer_secret=CONFIG["consumer_secret"], @@ -100,7 +100,15 @@ def review(): potentials.sort() - print("%s skins to review. Look busy!" % len(potentials)) + number_of_potentials = len(potentials) + + if number_of_potentials <= 50: + tweet( + "@captbaritone I'm down to only %s approved skins to tweet. You should review some more." + % number_of_potentials + ) + + print("%s skins to review. Look busy!" % number_of_potentials) for md5 in potentials: screenshot_url = get_screenshot_url(md5)