From cc5dc94ea85a664cbf09bd1ecd86640c9e6d3ea1 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Mon, 8 Jan 2018 16:32:29 -0600 Subject: [PATCH] add the forecast command to weather module --- weather/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/weather/__init__.py b/weather/__init__.py index ea2d8fc..8b3011f 100644 --- a/weather/__init__.py +++ b/weather/__init__.py @@ -3,6 +3,11 @@ from bot import hitomi from weather import lib +@hitomi.command() +async def forecast(query: str): + await hitomi.say(lib.get_forecast_for_query([query])) + + @hitomi.command() async def weather(query: str): await hitomi.say(lib.get_conditions_for_query([query]))