示例#1
0
文件: EveBot.cs 项目: etherealko/Eve
        public EveBot()
        {
            var db = new EveDb();

            _currentSpace = db.EveSpaces.Single(s => s.IsActive); //only single space is supported now

            _updater = new BotUpdatePoller(_currentSpace.BotApiAccessToken);
            _outgoingApi = new TelegramBotApi(_currentSpace.BotApiAccessToken);

            _mainThread = new Thread(UpdateProc);
        }
示例#2
0
 public PluginLocalStorage(PluginInfo pluginInfo)
 {
     _pluginInfo = pluginInfo;
     _dbContext = new EveDb();
 }