oysteikt/wiki-math-bot
oysteikt
/
wiki-math-bot
Archived
1
0
Fork 0

Send message on new content

This commit is contained in:
Oystein Kristoffer Tveit 2021-03-26 20:02:41 +01:00
parent 6254bb155c
commit 7c4837a8c3
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ module WebsiteCheckLoop =
log "Scraping website" log "Scraping website"
match previousListOfResults, listOfResults with match previousListOfResults, listOfResults with
| (previousListOfResults, listOfResults) when previousListOfResults = listOfResults -> | (previousListOfResults, listOfResults) when previousListOfResults <> listOfResults ->
channels channels
|> Seq.iter (fun id -> sendToChannelWith client (formatMessage <|| Seq.head listOfResults) id) |> Seq.iter (fun id -> sendToChannelWith client (formatMessage <|| Seq.head listOfResults) id)