log commands
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Elizabeth Hunt 2025-01-13 22:15:21 -08:00
parent bf5b86e9b8
commit 8380ef2db1
Signed by: simponic
GPG Key ID: 2909B9A7FF6213EE

View File

@ -2,6 +2,7 @@ package assistant
import ( import (
"fmt" "fmt"
"log"
"net/http" "net/http"
"os" "os"
) )
@ -15,6 +16,7 @@ func UnlockDoor(webhook string) error {
} }
func Do(command string) error { func Do(command string) error {
log.Println("handling coomand", command)
if command == "unlock" { if command == "unlock" {
return UnlockDoor(os.Getenv("UNLOCK_DOOR_WEBHOOK")) return UnlockDoor(os.Getenv("UNLOCK_DOOR_WEBHOOK"))
} }