small fixes
This commit is contained in:
parent
d3c598ae01
commit
2cad7f4475
@ -292,7 +292,7 @@ namespace NadekoBot
|
|||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
_log.Info("Shard {0} logged in ...", ShardId);
|
_log.Info("Shard {0} logged in.", ShardId);
|
||||||
sem.Release();
|
sem.Release();
|
||||||
}
|
}
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
@ -306,6 +306,7 @@ namespace NadekoBot
|
|||||||
|
|
||||||
public async Task RunAsync(params string[] args)
|
public async Task RunAsync(params string[] args)
|
||||||
{
|
{
|
||||||
|
if(ShardId == 0)
|
||||||
_log.Info("Starting NadekoBot v" + StatsService.BotVersion);
|
_log.Info("Starting NadekoBot v" + StatsService.BotVersion);
|
||||||
|
|
||||||
var sw = Stopwatch.StartNew();
|
var sw = Stopwatch.StartNew();
|
||||||
@ -316,7 +317,7 @@ namespace NadekoBot
|
|||||||
AddServices();
|
AddServices();
|
||||||
|
|
||||||
sw.Stop();
|
sw.Stop();
|
||||||
_log.Info($"Shard {ShardId} connected in {sw.Elapsed.TotalSeconds:F2} s");
|
_log.Info($"Shard {ShardId} connected in {sw.Elapsed.TotalSeconds:F2}s");
|
||||||
|
|
||||||
var stats = Services.GetService<IStatsService>();
|
var stats = Services.GetService<IStatsService>();
|
||||||
stats.Initialize();
|
stats.Initialize();
|
||||||
|
@ -49,7 +49,7 @@ namespace NadekoBot
|
|||||||
FileName = Credentials.ShardRunCommand,
|
FileName = Credentials.ShardRunCommand,
|
||||||
Arguments = string.Format(Credentials.ShardRunArguments, i, curProcessId)
|
Arguments = string.Format(Credentials.ShardRunArguments, i, curProcessId)
|
||||||
});
|
});
|
||||||
await Task.Delay(5000);
|
await Task.Delay(6500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,10 +65,10 @@ namespace NadekoBot
|
|||||||
}
|
}
|
||||||
await Task.Run(() =>
|
await Task.Run(() =>
|
||||||
{
|
{
|
||||||
try
|
string input;
|
||||||
|
while ((input = Console.ReadLine()?.ToLowerInvariant()) != "quit")
|
||||||
{
|
{
|
||||||
string input;
|
try
|
||||||
while ((input = Console.ReadLine()?.ToLowerInvariant()) != "quit")
|
|
||||||
{
|
{
|
||||||
switch (input)
|
switch (input)
|
||||||
{
|
{
|
||||||
@ -84,10 +84,10 @@ namespace NadekoBot
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
catch (Exception ex)
|
||||||
catch (Exception ex)
|
{
|
||||||
{
|
_log.Warn(ex);
|
||||||
_log.Warn(ex);
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
foreach (var p in ShardProcesses)
|
foreach (var p in ShardProcesses)
|
||||||
|
Loading…
Reference in New Issue
Block a user