From cd2c8ce3922340983eebf27e89c749b11864a2f6 Mon Sep 17 00:00:00 2001 From: Styler Date: Thu, 28 Sep 2023 12:21:00 +0200 Subject: [PATCH] Add weather variable for chatbot (#13) --- docs/chatbot/variables/weather.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/chatbot/variables/weather.md diff --git a/docs/chatbot/variables/weather.md b/docs/chatbot/variables/weather.md new file mode 100644 index 0000000..9fd9f02 --- /dev/null +++ b/docs/chatbot/variables/weather.md @@ -0,0 +1,24 @@ +--- +id: weather +tags: + - chatbot + - variable +--- + +# $(weather) + +Displays the current weather conditions for a given location. + +#### Parameters + +- `location`: The location to get the weather for. (i.e. New York, NY) + +#### Example Input + +`$(weather "New York, NY")` + +#### Example Output + +``` +New York, United States of America: 🌜 13.9 °C (57.0 °F). Feels like 12.6 °C (54.8 °F). Overcast. Wind is blowing from the Northeast at 3.6 km/h (2.2 mp/h). 81% humidity. Visibility: 16 km (9 miles). Air pressure: 1026 hPa. +```