WeatherBot gets alerts
    
      code
    • March 5, 2017
  
I didn’t expect WeatherBot to become
a series of posts, but the weather has been
fluctuating so much scary.
WeatherBot has severe weather alerts now:
How it works
- If any alerts occur in the request, then loop through them.
 - Get the title, start, expiration date, and link to the alert.
 - Check the
severity of the alert and assign an emoji
(advisory 
, watch 
, warning 
). - Post to Slack.
 
I’m looking forward to using this bot as a reminder to open up my laptop and
stay inside 
.