Example #1
0
        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);
        }
Example #2
0
 public PluginLocalStorage(PluginInfo pluginInfo)
 {
     _pluginInfo = pluginInfo;
     _dbContext = new EveDb();
 }