Make result return a random boolean value

main
Hammy 4 years ago
parent 65cb5c633b
commit f2e4004dd7

@ -51,7 +51,7 @@ class Winston:
def send_random_tweet(self):
"""Tweet something random from potential tweets"""
result = False
result = random.choice([True, False])
if result:
random_tweet = random.choice(self.potential_tweets)
self.bot.update_status(status=random_tweet)

Loading…
Cancel
Save