diff --git a/mastodon-toot-thursday.py b/mastodon-toot-thursday.py index 78f9f59..df7680f 100755 --- a/mastodon-toot-thursday.py +++ b/mastodon-toot-thursday.py @@ -5,8 +5,9 @@ import json import argparse import sys -from mastodon import Mastodon +import re import random +from mastodon import Mastodon HOME = os.getenv('HOME') @@ -40,10 +41,13 @@ def doTheLottery(self): awardedList = [] while tenPct > 0: - tenPct-=1 winner = random.choice(self.followingList) + ## skip myself + if re.search("helioloureiro", winner): + continue awardedList.append(winner) self.followingList.remove(winner) + tenPct-=1 print('Awarded:', awardedList) self.followingList = awardedList