diff options
Diffstat (limited to 'phone.py')
-rw-r--r-- | phone.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/phone.py b/phone.py deleted file mode 100644 index 59b9cfb..0000000 --- a/phone.py +++ /dev/null @@ -1,16 +0,0 @@ -import subprocess - -class PhoneManager: - def handle_event(self, event): - print("handling event", event) - if event == "fortune": - res = subprocess.run(["fortune"], stdout=subprocess.PIPE) - output = res.stdout.decode("utf-8") - self.speak(output) - else: - self.speak(event) - - - def speak(self, text): - print("speaking:", text) - subprocess.run(["espeak", text]) |