the-round-table / trtbot

🤖 Discord Bot
MIT License
3 stars 0 forks source link

Add "weather" command #15

Open bcongdon opened 5 years ago

bcongdon commented 5 years ago

trt weather urbana il

The openweathermap API looks promising: https://openweathermap.org/api

Joshuad2uiuc commented 5 years ago

IFTTT has webhooks for

and there is also the Dark Sky API.

If you want to look into them or I can look into them as well. I am doing other stuff right now

tyler-thetyrant commented 5 years ago

On top of the original command mentioned above, it would be nice if trt weather (without specifying city and state) would automatically list the weather in cities where current users reside (which is mainly four general areas: SF/SC, Seattle, Chicago, C-U).

This would:

Ideally, trt weather should return

Here's today's weather for everyone :) 

  Seattle, WA:      Mostly Sunny 68° ~ 72°
  Urbana, IL:       Scattered Showers 76° ~ 82°
  Santa Clara, CA:  Mostly Cloudy 68° ~ 72°

Additionally, something like trt weather add redmond wa command can be used by a new comers to the server to add to the list of cities.