public static void LogExceptionErr(Exception e) { while (e != null) { LogerHelper.WriteErrorLog(string.Format("异常,Message:{0},SatackTrace:{1}", e.Message, e.StackTrace)); e = e.InnerException; } }
static void Main(string[] args) { LogerHelper.SetConfig(); Thread t = new Thread(new ThreadStart(() => { var br = new IW2SBotRegHelper(); br.Register(BotType.WeChat); BotSearch.Instance.SetBusy += () => br.SentStatus(1); BotSearch.Instance.SetReady += () => br.SentStatus(0); BotSearch.Instance.Run(); // WeChartBot.Search.BosonNLP.Instance.Run(); })); t.Start(); Console.ReadLine(); }