summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth@simponic.xyz>2025-01-13 22:15:21 -0800
committerElizabeth Hunt <elizabeth@simponic.xyz>2025-01-13 22:15:21 -0800
commit8380ef2db173207339e6c8aec49c2ab61fb1e1c5 (patch)
treea2d4c82c7c4a735a224b624f1f4e335d0209eb33
parentbf5b86e9b87b77de6905870cc61e0d988e18879b (diff)
downloadphoneassistant-8380ef2db173207339e6c8aec49c2ab61fb1e1c5.tar.gz
phoneassistant-8380ef2db173207339e6c8aec49c2ab61fb1e1c5.zip
log commands
-rw-r--r--assistant/assistant.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/assistant/assistant.go b/assistant/assistant.go
index 00db82c..cf0a2a9 100644
--- a/assistant/assistant.go
+++ b/assistant/assistant.go
@@ -2,6 +2,7 @@ package assistant
import (
"fmt"
+ "log"
"net/http"
"os"
)
@@ -15,6 +16,7 @@ func UnlockDoor(webhook string) error {
}
func Do(command string) error {
+ log.Println("handling coomand", command)
if command == "unlock" {
return UnlockDoor(os.Getenv("UNLOCK_DOOR_WEBHOOK"))
}