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