small fixes

This commit is contained in:
Master Kwoth 2017-06-22 00:47:29 +02:00
parent d3c598ae01
commit 2cad7f4475
2 changed files with 11 additions and 10 deletions

View File

@ -292,7 +292,7 @@ namespace NadekoBot
}
finally
{
_log.Info("Shard {0} logged in ...", ShardId);
_log.Info("Shard {0} logged in.", ShardId);
sem.Release();
}
return Task.CompletedTask;
@ -306,6 +306,7 @@ namespace NadekoBot
public async Task RunAsync(params string[] args)
{
if(ShardId == 0)
_log.Info("Starting NadekoBot v" + StatsService.BotVersion);
var sw = Stopwatch.StartNew();

View File

@ -49,7 +49,7 @@ namespace NadekoBot
FileName = Credentials.ShardRunCommand,
Arguments = string.Format(Credentials.ShardRunArguments, i, curProcessId)
});
await Task.Delay(5000);
await Task.Delay(6500);
}
}
@ -64,11 +64,11 @@ namespace NadekoBot
_log.Error(ex);
}
await Task.Run(() =>
{
try
{
string input;
while ((input = Console.ReadLine()?.ToLowerInvariant()) != "quit")
{
try
{
switch (input)
{
@ -84,11 +84,11 @@ namespace NadekoBot
break;
}
}
}
catch (Exception ex)
{
_log.Warn(ex);
}
}
});
foreach (var p in ShardProcesses)
{