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): def send_random_tweet(self):
"""Tweet something random from potential tweets""" """Tweet something random from potential tweets"""
result = False result = random.choice([True, False])
if result: if result:
random_tweet = random.choice(self.potential_tweets) random_tweet = random.choice(self.potential_tweets)
self.bot.update_status(status=random_tweet) self.bot.update_status(status=random_tweet)

Loading…
Cancel
Save