add some verbose

This commit is contained in:
Mylloon 2022-08-09 02:49:07 +02:00
parent 8c57391b54
commit eda6804d38
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -351,11 +351,17 @@ def start():
need_changes = True need_changes = True
if need_changes: if need_changes:
if keys["VERBOSE"]:
print("Changes needed... ", end=" ")
# Clean old rules # Clean old rules
if old_rules: if old_rules:
if keys["VERBOSE"]:
print("deleting old rules... ", end=" ")
stream.delete_rules([rule.id for rule in old_rules]) stream.delete_rules([rule.id for rule in old_rules])
# Add new rules # Add new rules
if keys["VERBOSE"]:
print("sending new filter to Twitter.")
stream.add_rules([StreamRule(rule) for rule in rules]) stream.add_rules([StreamRule(rule) for rule in rules])
# Apply the filter # Apply the filter