updated school message format
parent
e4f36e5210
commit
b8ebeddfac
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue