Browse Source

fix boost notifs

main
xenua 2 years ago
parent
commit
373d7cfdda
Signed by: xenua
GPG Key ID: 8F93B68BD37255B8
  1. 5
      main.py

5
main.py

@ -79,12 +79,14 @@ def main():
typer.echo("Created the post! ctrl+c to end the jitis and exit.") typer.echo("Created the post! ctrl+c to end the jitis and exit.")
try: try:
i = 1
sleep(delay*60) sleep(delay*60)
m.status_reblog(t["id"]) m.status_reblog(t["id"])
typer.echo(f"boosting! running for {delay * i} minutes...")
sleep(delay*60) sleep(delay*60)
i = 0
while True: while True:
now = time() now = time()
i += 1
m.status_unreblog(t["id"]) m.status_unreblog(t["id"])
sleep(10) sleep(10)
@ -93,7 +95,6 @@ def main():
typer.echo(f"boosting! running for {delay*i} minutes...") typer.echo(f"boosting! running for {delay*i} minutes...")
sleep(delay*60 - (time() - now)) sleep(delay*60 - (time() - now))
i += 1
except KeyboardInterrupt: except KeyboardInterrupt:
m.status_post(choice(FJ["closing_texts"]), in_reply_to_id=t["id"]) m.status_post(choice(FJ["closing_texts"]), in_reply_to_id=t["id"])
typer.echo("\nposted closing toot, see you next time!") typer.echo("\nposted closing toot, see you next time!")

Loading…
Cancel
Save