removed some unneeeded prints

This commit is contained in:
Master Kwoth
2017-06-15 15:29:41 +02:00
parent a0559b7130
commit e51d2bec23
12 changed files with 18 additions and 26 deletions

View File

@@ -70,7 +70,7 @@ namespace NadekoBot.Modules.Administration
catch (Exception ex)
{
await ReplyErrorLocalized("setrole_err").ConfigureAwait(false);
Console.WriteLine(ex.ToString());
_log.Info(ex);
}
}

View File

@@ -216,7 +216,7 @@ namespace NadekoBot.Modules.Administration
catch (Exception ex)
{
await ReplyErrorLocalized("self_assign_perms").ConfigureAwait(false);
Console.WriteLine(ex);
_log.Info(ex);
return;
}
var msg = await ReplyConfirmLocalized("self_assign_success",Format.Bold(role.Name)).ConfigureAwait(false);

View File

@@ -25,7 +25,7 @@ namespace NadekoBot.Modules.Games.Hangman
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
}

View File

@@ -173,7 +173,7 @@ namespace NadekoBot.Modules.Searches
// .FirstOrDefault(jt => jt["role"].ToString() == role)?["general"];
// if (general == null)
// {
// Console.WriteLine("General is null.");
// //Console.WriteLine("General is null.");
// return;
// }
// //get build data for this role
@@ -309,7 +309,7 @@ namespace NadekoBot.Modules.Searches
// }
// catch (Exception ex)
// {
// Console.WriteLine(ex);
// //Console.WriteLine(ex);
// await channel.SendMessageAsync("💢 Failed retreiving data for that champion.").ConfigureAwait(false);
// }
// });

View File

@@ -86,7 +86,6 @@ namespace NadekoBot.Modules.Searches
{
http.AddFakeHeaders();
var url = $"https://owapi.nadekobot.me/api/v3/u/{battletag}/stats";
System.Console.WriteLine(url);
var res = await http.GetStringAsync($"https://owapi.nadekobot.me/api/v3/u/{battletag}/stats");
var model = JsonConvert.DeserializeObject<OverwatchApiModel.OverwatchResponse>(res);
switch (region)