From eda6804d384b52d47d2fa81f556c1388153325b8 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 9 Aug 2022 02:49:07 +0200 Subject: [PATCH] add some verbose --- main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.py b/main.py index 5f91f8c..6a36d9c 100644 --- a/main.py +++ b/main.py @@ -351,11 +351,17 @@ def start(): need_changes = True if need_changes: + if keys["VERBOSE"]: + print("Changes needed... ", end=" ") # Clean old rules if old_rules: + if keys["VERBOSE"]: + print("deleting old rules... ", end=" ") stream.delete_rules([rule.id for rule in old_rules]) # Add new rules + if keys["VERBOSE"]: + print("sending new filter to Twitter.") stream.add_rules([StreamRule(rule) for rule in rules]) # Apply the filter