removed some unneeeded prints
This commit is contained in:
parent
a0559b7130
commit
e51d2bec23
@ -70,7 +70,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
await ReplyErrorLocalized("setrole_err").ConfigureAwait(false);
|
await ReplyErrorLocalized("setrole_err").ConfigureAwait(false);
|
||||||
Console.WriteLine(ex.ToString());
|
_log.Info(ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
await ReplyErrorLocalized("self_assign_perms").ConfigureAwait(false);
|
await ReplyErrorLocalized("self_assign_perms").ConfigureAwait(false);
|
||||||
Console.WriteLine(ex);
|
_log.Info(ex);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var msg = await ReplyConfirmLocalized("self_assign_success",Format.Bold(role.Name)).ConfigureAwait(false);
|
var msg = await ReplyConfirmLocalized("self_assign_success",Format.Bold(role.Name)).ConfigureAwait(false);
|
||||||
|
@ -25,7 +25,7 @@ namespace NadekoBot.Modules.Games.Hangman
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Console.WriteLine(ex);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ namespace NadekoBot.Modules.Searches
|
|||||||
// .FirstOrDefault(jt => jt["role"].ToString() == role)?["general"];
|
// .FirstOrDefault(jt => jt["role"].ToString() == role)?["general"];
|
||||||
// if (general == null)
|
// if (general == null)
|
||||||
// {
|
// {
|
||||||
// Console.WriteLine("General is null.");
|
// //Console.WriteLine("General is null.");
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
// //get build data for this role
|
// //get build data for this role
|
||||||
@ -309,7 +309,7 @@ namespace NadekoBot.Modules.Searches
|
|||||||
// }
|
// }
|
||||||
// catch (Exception ex)
|
// catch (Exception ex)
|
||||||
// {
|
// {
|
||||||
// Console.WriteLine(ex);
|
// //Console.WriteLine(ex);
|
||||||
// await channel.SendMessageAsync("💢 Failed retreiving data for that champion.").ConfigureAwait(false);
|
// await channel.SendMessageAsync("💢 Failed retreiving data for that champion.").ConfigureAwait(false);
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
|
@ -86,7 +86,6 @@ namespace NadekoBot.Modules.Searches
|
|||||||
{
|
{
|
||||||
http.AddFakeHeaders();
|
http.AddFakeHeaders();
|
||||||
var url = $"https://owapi.nadekobot.me/api/v3/u/{battletag}/stats";
|
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 res = await http.GetStringAsync($"https://owapi.nadekobot.me/api/v3/u/{battletag}/stats");
|
||||||
var model = JsonConvert.DeserializeObject<OverwatchApiModel.OverwatchResponse>(res);
|
var model = JsonConvert.DeserializeObject<OverwatchApiModel.OverwatchResponse>(res);
|
||||||
switch (region)
|
switch (region)
|
||||||
|
@ -331,23 +331,16 @@ namespace NadekoBot
|
|||||||
|
|
||||||
private static void SetupLogger()
|
private static void SetupLogger()
|
||||||
{
|
{
|
||||||
try
|
var logConfig = new LoggingConfiguration();
|
||||||
|
var consoleTarget = new ColoredConsoleTarget()
|
||||||
{
|
{
|
||||||
var logConfig = new LoggingConfiguration();
|
Layout = @"${date:format=HH\:mm\:ss} ${logger} | ${message}"
|
||||||
var consoleTarget = new ColoredConsoleTarget()
|
};
|
||||||
{
|
logConfig.AddTarget("Console", consoleTarget);
|
||||||
Layout = @"${date:format=HH\:mm\:ss} ${logger} | ${message}"
|
|
||||||
};
|
|
||||||
logConfig.AddTarget("Console", consoleTarget);
|
|
||||||
|
|
||||||
logConfig.LoggingRules.Add(new LoggingRule("*", LogLevel.Debug, consoleTarget));
|
logConfig.LoggingRules.Add(new LoggingRule("*", LogLevel.Debug, consoleTarget));
|
||||||
|
|
||||||
LogManager.Configuration = logConfig;
|
LogManager.Configuration = logConfig;
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
Console.WriteLine(ex);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,6 @@ namespace NadekoBot.Services.ClashOfClans
|
|||||||
SequenceNumber = i,
|
SequenceNumber = i,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
Console.WriteLine(cw.Bases.Capacity);
|
|
||||||
uow.ClashOfClans.Add(cw);
|
uow.ClashOfClans.Add(cw);
|
||||||
await uow.CompleteAsync();
|
await uow.CompleteAsync();
|
||||||
return cw;
|
return cw;
|
||||||
|
@ -30,7 +30,6 @@ namespace NadekoBot.Services.Games
|
|||||||
{
|
{
|
||||||
var res = await http.GetStringAsync(string.Format(apiEndpoint, message)).ConfigureAwait(false);
|
var res = await http.GetStringAsync(string.Format(apiEndpoint, message)).ConfigureAwait(false);
|
||||||
var cbr = JsonConvert.DeserializeObject<ChatterBotResponse>(res);
|
var cbr = JsonConvert.DeserializeObject<ChatterBotResponse>(res);
|
||||||
//Console.WriteLine(cbr.Convo_id);
|
|
||||||
return cbr.BotSay.Replace("<br/>", "\n");
|
return cbr.BotSay.Replace("<br/>", "\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,11 @@ namespace NadekoBot.Services.Impl
|
|||||||
ulong.TryParse(data[nameof(ClientId)], out clId);
|
ulong.TryParse(data[nameof(ClientId)], out clId);
|
||||||
ClientId = clId;
|
ClientId = clId;
|
||||||
|
|
||||||
SoundCloudClientId = data[nameof(SoundCloudClientId)];
|
var scId = data[nameof(SoundCloudClientId)];
|
||||||
|
SoundCloudClientId = scId;
|
||||||
|
//SoundCloudClientId = string.IsNullOrWhiteSpace(scId)
|
||||||
|
// ?
|
||||||
|
// : scId;
|
||||||
CarbonKey = data[nameof(CarbonKey)];
|
CarbonKey = data[nameof(CarbonKey)];
|
||||||
var dbSection = data.GetSection("db");
|
var dbSection = data.GetSection("db");
|
||||||
Db = new DBConfig(string.IsNullOrWhiteSpace(dbSection["Type"])
|
Db = new DBConfig(string.IsNullOrWhiteSpace(dbSection["Type"])
|
||||||
|
@ -27,7 +27,6 @@ namespace NadekoBot.Services.Music
|
|||||||
using (var http = new HttpClient())
|
using (var http = new HttpClient())
|
||||||
{
|
{
|
||||||
response = await http.GetStringAsync($"http://api.soundcloud.com/resolve?url={url}&client_id={_creds.SoundCloudClientId}").ConfigureAwait(false);
|
response = await http.GetStringAsync($"http://api.soundcloud.com/resolve?url={url}&client_id={_creds.SoundCloudClientId}").ConfigureAwait(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@ namespace NadekoBot.Services.Utility
|
|||||||
|
|
||||||
public MessageRepeaterService(NadekoBot bot, DiscordShardedClient client, IEnumerable<GuildConfig> gcs)
|
public MessageRepeaterService(NadekoBot bot, DiscordShardedClient client, IEnumerable<GuildConfig> gcs)
|
||||||
{
|
{
|
||||||
System.Console.WriteLine(bot.Ready);
|
|
||||||
var _ = Task.Run(async () =>
|
var _ = Task.Run(async () =>
|
||||||
{
|
{
|
||||||
while (!bot.Ready)
|
while (!bot.Ready)
|
||||||
|
@ -94,7 +94,7 @@ namespace NadekoBot.Extensions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex) { Console.WriteLine(ex); }
|
catch (Exception ex) { }
|
||||||
};
|
};
|
||||||
|
|
||||||
using (msg.OnReaction(client, changePage, changePage))
|
using (msg.OnReaction(client, changePage, changePage))
|
||||||
|
Loading…
Reference in New Issue
Block a user