From 976e93df8639f6337b0b360db2b25cb91235252b Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Fri, 18 Mar 2016 00:30:16 +0100 Subject: [PATCH] small fixes --- NadekoBot/Classes/SearchHelper.cs | 2 +- NadekoBot/Commands/LoLCommands.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/NadekoBot/Classes/SearchHelper.cs b/NadekoBot/Classes/SearchHelper.cs index 9fc69b9a..c7bf18dc 100644 --- a/NadekoBot/Classes/SearchHelper.cs +++ b/NadekoBot/Classes/SearchHelper.cs @@ -187,7 +187,7 @@ namespace NadekoBot.Classes { var link = $"http://danbooru.donmai.us/posts?" + $"page={rng.Next(0, 15)}"; if (!string.IsNullOrWhiteSpace(tag)) - link += $"&tags=order%3Arank+{tag.Replace(" ", "_")}"; + link += $"&tags={tag.Replace(" ", "_")}"; var webpage = await GetResponseStringAsync(link); var matches = Regex.Matches(webpage, "data-large-file-url=\"(?.*?)\""); diff --git a/NadekoBot/Commands/LoLCommands.cs b/NadekoBot/Commands/LoLCommands.cs index 4dec9a9c..09a49e92 100644 --- a/NadekoBot/Commands/LoLCommands.cs +++ b/NadekoBot/Commands/LoLCommands.cs @@ -144,7 +144,7 @@ namespace NadekoBot.Commands { //get skill order data var orderArr = (data["skills"]["mostGames"]["order"] as JArray); - + var img = Image.FromFile("data/lol/bg.png"); using (var g = Graphics.FromImage(img)) { g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality; @@ -182,7 +182,6 @@ namespace NadekoBot.Commands { orderY += orderVerticalSpacing * 3; break; default: - orderY += orderVerticalSpacing * 3; break; }