From b54f5e161d9783d7d29d70165a0fb76f13873451 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Tue, 16 Aug 2016 07:56:32 +0200 Subject: [PATCH] fiexed a typo and some minor things, thx @v3Monsta --- src/NadekoBot/Modules/Searches/SearchesModule.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NadekoBot/Modules/Searches/SearchesModule.cs b/src/NadekoBot/Modules/Searches/SearchesModule.cs index bf18d845..f8602e26 100644 --- a/src/NadekoBot/Modules/Searches/SearchesModule.cs +++ b/src/NadekoBot/Modules/Searches/SearchesModule.cs @@ -280,7 +280,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 { await imsg.Channel.SendMessageAsync("⚠ Found over 4 images. Showing random 4.").ConfigureAwait(false); } - await e.Channel.SendFile(arg + ".png", (await images.MergeAsync()).ToStream(System.Drawing.Imaging.ImageFormat.Png)) + await imsg.Channel.SendMessageAsync(arg + ".png", (await images.MergeAsync()).ToStream(System.Drawing.Imaging.ImageFormat.Png)) .ConfigureAwait(false); } catch (Exception ex) @@ -355,7 +355,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 } catch { - await imsg.Channel.SendMessageAsync("💢 Failed finidng a definition for that tag.").ConfigureAwait(false); + await imsg.Channel.SendMessageAsync("💢 Failed finding a definition for that tag.").ConfigureAwait(false); } } @@ -529,7 +529,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】 { var allUsrs = imsg.MentionedUsers.Append(imsg.Author); var allUsrsArray = allUsrs.ToArray(); - var str = allUsrsArray.Aggregate("http://appear.in/", (current, usr) => current + Uri.EscapeUriString(usr.Name[0].ToString())); + var str = allUsrsArray.Aggregate("http://appear.in/", (current, usr) => current + Uri.EscapeUriString(usr.Username[0].ToString())); str += new Random().Next(); foreach (var usr in allUsrsArray) {