public Configuration(RegexBot bot) { _bot = bot; var dsc = Path.DirectorySeparatorChar; _configPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + dsc + "settings.json"; }
static void Main(string[] args) { RegexBot rb = new RegexBot(); Console.CancelKeyPress += rb.Console_CancelKeyPress; AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; rb.Start().GetAwaiter().GetResult(); }