stage for PR
This commit is contained in:
parent
f5cb629a63
commit
f66d42b891
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user