stage for PR

This commit is contained in:
appelemac 2016-08-22 12:09:36 +02:00
parent f5cb629a63
commit f66d42b891
2 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -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)