Skip to content

Commit

Permalink
Update my_twitter_bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
RankJay authored Mar 8, 2021
1 parent 7c7d8e3 commit 5130750
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions my_twitter_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,12 @@ def replyToTweets():
print('connecting to the giveaway thread...', flush=True)
tweet = mention.full_text.lower()
subHash = '#'
giveawayLimit = '!'
keywords = [str(x) for x in tweet.split(" ")]
thread = [tweet for tweet in keywords if subHash in tweet]
Alert = [tweet for tweet in keywords if giveawayLimit in tweet]
retweetersScript.retweetersScraping(thread[0][1:])
Validators, Identity, Template = getWinners.randomGiveaway(thread[0][1:], OWNER_NAME)
Validators, Identity, Template = getWinners.randomGiveaway(thread[0][1:], OWNER_NAME, int(Alert[0][1:]))

winners_indx = ProcessingRandomness(int(mention.id))
GIVEAWAY_DATABASE.append(thread[0][1:])
Expand All @@ -154,4 +156,4 @@ def replyToTweets():
while True:
replyToTweets()
n = random.randint(1, 10)
time.sleep(n)
time.sleep(n)

0 comments on commit 5130750

Please sign in to comment.