Re:Show HN: Get a Slack message when your brand is mentioned...
by codeplea on Wednesday February 22, 2017 @08:43PM
(#13710938)
Does your one-liner continue to send the same email every 60 seconds while "YourBrand" is on the front page?
Re:Show HN: Get a Slack message when your brand is mentioned...
by stephengillie on Wednesday February 22, 2017 @11:54PM
(#13711758)
Yes, you may want to disable it when your brand hits the front page.
While ($True) {If ((iwr https://news.ycombinator.com).content.split('", ') | select-string "YourBrand") {Send-MailMessage -from [email protected] -to [email protected] -server MySmtpServer.example.com -subject "YourBrand was mentioned on the front page of HN!"}; Sleep 60}