diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -9,6 +9,7 @@ import ( "git.simponic.xyz/simponic/phoneassistant/args" "git.simponic.xyz/simponic/phoneassistant/database" "git.simponic.xyz/simponic/phoneassistant/ntfy" + "git.simponic.xyz/simponic/phoneassistant/ntfy/assistant" "git.simponic.xyz/simponic/phoneassistant/scheduler" "github.com/joho/godotenv" ) @@ -43,8 +44,10 @@ func main() { go func() { for notification := range notifications { - message := notification.Message - log.Println("got message", message) + err := assistant.Do(notification.Message) + if err != nil { + log.Println("error when sending command: ", err) + } } }() } |