Time to bring these from my personal branch #33

Manually merged
toastie_t0ast merged 57 commits from :v6 into v6 2025-02-28 23:18:40 +00:00
Showing only changes of commit 81677ee761 - Show all commits

View file

@ -1,4 +1,17 @@
var shardId = 0;
using System.Reflection;
static string GetAppVersion()
{
return Assembly.GetExecutingAssembly().GetName().Version?.ToString() ?? "unknown";
}
if (args.Length > 0 && args[0] == "--version")
{
Console.WriteLine(GetAppVersion());
return;
}
var shardId = 0;
int? totalShards = null; // 0 to read from creds.yml
if (args.Length > 0 && args[0] != "run")
{
@ -20,5 +33,4 @@ if (args.Length > 0 && args[0] != "run")
}
}
await new Bot(shardId, totalShards).RunAndBlockAsync();