if not $HOTWORDS then stdout

master
bel 2023-03-29 21:31:46 -06:00
parent 22b6cf9446
commit 35a9f6486b
1 changed files with 4 additions and 1 deletions

View File

@ -218,6 +218,9 @@ class Reactor(threading.Thread):
if os.environ.get("DEBUG", None):
log(f"seeking {hotwords} in {text}")
if not hotwords:
if os.environ.get("HOTWORDS", None):
print(text)
else:
log(text)
return
cleantext = "".join([i for i in "".join(text.lower().split()) if i.isalpha()])