Skip to content

Commit

Permalink
Removing myself and my profiles from TT
Browse files Browse the repository at this point in the history
  • Loading branch information
helioloureiro committed Aug 30, 2024
1 parent 0285fa4 commit a894410
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mastodon-toot-thursday.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a894410

Please sign in to comment.