my goal is to reply to a certain tweet using tweepy with some pause (time.sleep()) the reply format is status and the value of i at the end. but my code isn't working and i don't know why. (nb: it only replies once and doesn't print the report)
import tweepy
import random
import datetime
import time
def spam():
for i in range(amount):
send = str(status) + " " + str(i+1)
pause = random.randint(5,12)
auth = tweepy.OAuthHandler("xxxx", "xxxx")
auth.set_access_token("xxxx-xxxx", "xxxx")
api = tweepy.API(auth)
api.update_status(send, in_reply_to_status_id = tweetid , auto_populate_reply_metadata=True)
print("succes, pause =",pause+"s\t",datetime.datetime.now()) # for report
time.sleep(pause)
amount = int(input("amount>> "))
status = input("status>> ")
tweetid = input("id>> ")
spam()