Send message on new content
This commit is contained in:
@@ -28,7 +28,7 @@ module WebsiteCheckLoop =
|
||||
log "Scraping website"
|
||||
|
||||
match previousListOfResults, listOfResults with
|
||||
| (previousListOfResults, listOfResults) when previousListOfResults = listOfResults ->
|
||||
| (previousListOfResults, listOfResults) when previousListOfResults <> listOfResults ->
|
||||
|
||||
channels
|
||||
|> Seq.iter (fun id -> sendToChannelWith client (formatMessage <|| Seq.head listOfResults) id)
|
||||
|
||||
Reference in New Issue
Block a user