示例#1
0
        public Configuration(RegexBot bot)
        {
            _bot = bot;
            var dsc = Path.DirectorySeparatorChar;

            _configPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)
                          + dsc + "settings.json";
        }
示例#2
0
        static void Main(string[] args)
        {
            RegexBot rb = new RegexBot();

            Console.CancelKeyPress += rb.Console_CancelKeyPress;
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            rb.Start().GetAwaiter().GetResult();
        }