using System;
using System.Threading;
using System.Reflection;
using System.Linq;
using BetterSecondBotShared.Static;
using BetterSecondBotShared.logs;
namespace BetterSecondBot
{
class Program
{
static void Main(string[] args)
{
if (helpers.notempty(Environment.GetEnvironmentVariable("BotRunningInDocker")) == true)
{
new CliDocker();
}
else
{
new CliHardware(args);
}
ConsoleLog.Status("- Exiting in 5 secs -");
Thread.Sleep(5000);
}
public static class AssemblyInfo
{
/// Gets the git hash value from the assembly
/// or null if it cannot be found.
public static string GetGitHash()
{
var asm = typeof(AssemblyInfo).Assembly;
var attrs = asm.GetCustomAttributes();
return attrs.FirstOrDefault(a => a.Key == "GitHash")?.Value;
}
}
}
}