Display weather on single line
This commit is contained in:
@@ -92,12 +92,7 @@ async def handle_command(room, message, bot, prefix, config):
|
||||
|
||||
# Format the weather message
|
||||
weather_message = f"""
|
||||
<strong>{weather_emoji} Weather for {city_name}, {country}</strong><br>
|
||||
<strong>Condition:</strong> {description}<br>
|
||||
<strong>Temperature:</strong> {temp:.1f}°C ({temp_f:.1f}°F)<br>
|
||||
<strong>Feels like:</strong> {feels_like:.1f}°C ({feels_like_f:.1f}°F)<br>
|
||||
<strong>Humidity:</strong> {humidity}%<br>
|
||||
<strong>Wind Speed:</strong> {wind_speed} m/s
|
||||
<strong>[{weather_emoji} Weather for {city_name}, {country}]</strong>: <strong>Condition:</strong> {description} | <strong>Temperature:</strong> {temp:.1f}°C ({temp_f:.1f}°F) | <strong>Feels like:</strong> {feels_like:.1f}°C ({feels_like_f:.1f}°F) | <strong>Humidity:</strong> {humidity}% | <strong>Wind Speed:</strong> {wind_speed} m/s
|
||||
""".strip()
|
||||
|
||||
await bot.api.send_markdown_message(room.room_id, weather_message)
|
||||
|
Reference in New Issue
Block a user