mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-13 02:38:27 -04:00
Using humanizer to deal with time and string trimming in some cases. Removed unused methods. Currency output format improvement (will use guild locale now for some commands)
This commit is contained in:
@@ -2,27 +2,25 @@
|
||||
|
||||
var shardId = 0;
|
||||
int? totalShards = null; // 0 to read from creds.yml
|
||||
if (args.Length > 0)
|
||||
{
|
||||
if (!int.TryParse(args[0], out shardId))
|
||||
{
|
||||
Console.Error.WriteLine("Invalid first argument (shard id): {0}", args[0]);
|
||||
return;
|
||||
}
|
||||
|
||||
if (args.Length > 1)
|
||||
{
|
||||
if (!int.TryParse(args[1], out var shardCount))
|
||||
{
|
||||
Console.Error.WriteLine("Invalid second argument (total shards): {0}", args[1]);
|
||||
return;
|
||||
}
|
||||
|
||||
totalShards = shardCount;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// if (args.Length > 0)
|
||||
// {
|
||||
// if (!int.TryParse(args[0], out shardId))
|
||||
// {
|
||||
// Console.Error.WriteLine("Invalid first argument (shard id): {0}", args[0]);
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// if (args.Length > 1)
|
||||
// {
|
||||
// if (!int.TryParse(args[1], out var shardCount))
|
||||
// {
|
||||
// Console.Error.WriteLine("Invalid second argument (total shards): {0}", args[1]);
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// totalShards = shardCount;
|
||||
// }
|
||||
// }
|
||||
|
||||
LogSetup.SetupLogger(shardId);
|
||||
Log.Information($"Pid: {pid}");
|
||||
|
Reference in New Issue
Block a user