updated school message format

master
Alex 2022-02-25 17:48:15 +01:00
parent e4f36e5210
commit b8ebeddfac
1 changed files with 3 additions and 3 deletions

View File

@ -79,10 +79,10 @@ func School() {
if send {
text := firstListItem.Find("a .news-summary").Text()
url := firstListItem.Find("a[href=true").Text()
url := firstListItem.Find("a").AttrOr("href", "")
log.Println("header", pageTitle, "text", text, "url", url)
log.Println("header", latest_page_title, "text", text, "url", url)
matrixbot.SendMessage(pageTitle, text, url)
matrixbot.SendMessage(latest_page_title, text, url)
}
}