fix some line length violations in weather/ircplugin.py
This commit is contained in:
parent
c0c0306419
commit
5f6e255ded
|
@ -36,12 +36,15 @@ class Weather(Plugin):
|
||||||
weather = weather_summary(queryitems[0])
|
weather = weather_summary(queryitems[0])
|
||||||
weather_output = (f"Weather in {weather['location']}: {weather['current']['description']}. "
|
weather_output = (f"Weather in {weather['location']}: {weather['current']['description']}. "
|
||||||
f"{weather['current']['temp_F']}/{weather['current']['temp_C']}, "
|
f"{weather['current']['temp_F']}/{weather['current']['temp_C']}, "
|
||||||
f"feels like {weather['current']['feels_like_temp_F']}/{weather['current']['feels_like_temp_C']}. "
|
f"feels like {weather['current']['feels_like_temp_F']}/"
|
||||||
f"Wind {weather['current']['wind_speed']} from the {weather['current']['wind_direction']}. "
|
f"{weather['current']['feels_like_temp_C']}. "
|
||||||
|
f"Wind {weather['current']['wind_speed']} "
|
||||||
|
f"from the {weather['current']['wind_direction']}. "
|
||||||
f"Visibility {weather['current']['visibility']}. "
|
f"Visibility {weather['current']['visibility']}. "
|
||||||
f"Precipitation {weather['current']['precipitation']}. "
|
f"Precipitation {weather['current']['precipitation']}. "
|
||||||
f"Pressure {weather['current']['pressure']}. "
|
f"Pressure {weather['current']['pressure']}. "
|
||||||
f"Cloud cover {weather['current']['cloud_cover']}. UV index {weather['current']['uv_index']}. "
|
f"Cloud cover {weather['current']['cloud_cover']}. "
|
||||||
|
f"UV index {weather['current']['uv_index']}. "
|
||||||
f"Today: {weather['today_forecast']['noteworthy']}, "
|
f"Today: {weather['today_forecast']['noteworthy']}, "
|
||||||
f"High {weather['today_forecast']['high_F']}/{weather['today_forecast']['high_C']}, "
|
f"High {weather['today_forecast']['high_F']}/{weather['today_forecast']['high_C']}, "
|
||||||
f"Low {weather['today_forecast']['low_F']}/{weather['today_forecast']['low_C']}. "
|
f"Low {weather['today_forecast']['low_F']}/{weather['today_forecast']['low_C']}. "
|
||||||
|
@ -49,9 +52,10 @@ class Weather(Plugin):
|
||||||
f"High {weather['tomorrow_forecast']['high_F']}/{weather['tomorrow_forecast']['high_C']}, "
|
f"High {weather['tomorrow_forecast']['high_F']}/{weather['tomorrow_forecast']['high_C']}, "
|
||||||
f"Low {weather['tomorrow_forecast']['low_F']}/{weather['tomorrow_forecast']['low_C']}. "
|
f"Low {weather['tomorrow_forecast']['low_F']}/{weather['tomorrow_forecast']['low_C']}. "
|
||||||
f"Day after tomorrow: {weather['day_after_tomorrow_forecast']['noteworthy']}, "
|
f"Day after tomorrow: {weather['day_after_tomorrow_forecast']['noteworthy']}, "
|
||||||
f"High {weather['day_after_tomorrow_forecast']['high_F']}/{weather['day_after_tomorrow_forecast']['high_C']}, "
|
f"High {weather['day_after_tomorrow_forecast']['high_F']}/"
|
||||||
f"Low {weather['day_after_tomorrow_forecast']['low_F']}/{weather['day_after_tomorrow_forecast']['low_C']}."
|
f"{weather['day_after_tomorrow_forecast']['high_C']}, "
|
||||||
)
|
f"Low {weather['day_after_tomorrow_forecast']['low_F']}/"
|
||||||
|
f"{weather['day_after_tomorrow_forecast']['low_C']}.")
|
||||||
|
|
||||||
return self.bot.reply(event, weather_output)
|
return self.bot.reply(event, weather_output)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue