From f66d42b891dc9690c5b60b0b00c3637fd07c19ff Mon Sep 17 00:00:00 2001 From: appelemac Date: Mon, 22 Aug 2016 12:09:36 +0200 Subject: [PATCH] stage for PR --- src/NadekoBot/Modules/Searches/Searches.cs | 1 + src/NadekoBot/NadekoBot.cs | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/NadekoBot/Modules/Searches/Searches.cs b/src/NadekoBot/Modules/Searches/Searches.cs index b2159604..1f587161 100644 --- a/src/NadekoBot/Modules/Searches/Searches.cs +++ b/src/NadekoBot/Modules/Searches/Searches.cs @@ -25,6 +25,7 @@ namespace NadekoBot.Modules.Searches { _google = youtube; } + [LocalizedCommand, LocalizedDescription, LocalizedSummary] [RequireContext(ContextType.Guild)] public async Task Weather(IMessage imsg, string city, string country) diff --git a/src/NadekoBot/NadekoBot.cs b/src/NadekoBot/NadekoBot.cs index 7f5bbbdf..d71c5364 100644 --- a/src/NadekoBot/NadekoBot.cs +++ b/src/NadekoBot/NadekoBot.cs @@ -29,7 +29,7 @@ namespace NadekoBot public async Task RunAsync(string[] args) { SetupLogger(); - _log.Debug("Logger created, starting client"); + //create client Client = new DiscordSocketClient(new DiscordSocketConfig { @@ -45,7 +45,7 @@ namespace NadekoBot Localizer = new Localization(); Google = new GoogleApiService(); Stats = new StatsService(Client); - + _log = LogManager.GetCurrentClassLogger(); //setup DI var depMap = new DependencyMap(); @@ -72,7 +72,6 @@ namespace NadekoBot private void SetupLogger() { - try { var logConfig = new LoggingConfiguration(); @@ -85,12 +84,10 @@ namespace NadekoBot logConfig.LoggingRules.Add(new LoggingRule("*", LogLevel.Debug, consoleTarget)); LogManager.Configuration = logConfig; - } catch (Exception ex) { Console.WriteLine(ex); } - _log = LogManager.GetCurrentClassLogger(); } private Task Client_MessageReceived(IMessage imsg)