From 2af954501c0ddb39a0db49d9247531f866508738 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Tue, 22 Mar 2016 01:42:20 +0100 Subject: [PATCH] better weather --- NadekoBot/Modules/Searches.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/NadekoBot/Modules/Searches.cs b/NadekoBot/Modules/Searches.cs index 705c9cda..14f41cd3 100644 --- a/NadekoBot/Modules/Searches.cs +++ b/NadekoBot/Modules/Searches.cs @@ -41,12 +41,13 @@ namespace NadekoBot.Modules { var obj = JObject.Parse(response)["weather"]; await e.Channel.SendMessage( -$@"**`Location:`【{obj["target"]}】 -`Temp:` {obj["centigrade"]}°C, {obj["condition"]} `Feels like:` {obj["feelscentigrade"]}°C -`Wind:` {obj["windspeedk"]}km/h {obj["winddir"]} `Humidity:` {obj["humidity"]}%**"); +$@"🌍 **Weather for** 【{obj["target"]}】 +📏 **Lat,Long:** ({obj["latitude"]}, {obj["longitude"]}) ☁ **Condition:** {obj["condition"]} +😓 **Humidity:** {obj["humidity"]}% 💨 **Wind Speed:** {obj["windspeedm"]}mph / {obj["windspeedk"]}km/h +🔆 **Temperature:** {obj["centigrade"]}°C / {obj["fahrenheit"]}°F 🔆 **Feels like:** {obj["feelscentigrade"]}°C / {obj["feelsfahrenheit"]}°F +🌄 **Sunrise:** {obj["sunrise"]} 🌇 **Sunset:** {obj["sunset"]}"); }); - cgb.CreateCommand(Prefix + "yt") .Parameter("query", ParameterType.Unparsed) .Description("Searches youtubes and shows the first result")