Ejemplo n.º 1
0
 public CommandProcessor(CommandProcessorConfig config)
 {
     _commandCharacters = config.CommandCharacters;
     _opBotUserId       = config.OpBotUserId;
     _names             = config.Names;
     _repository        = config.Repository;
     _adminUsers        = config.AdminUsers;
     _client            = config.Client;
     _opBotChannelId    = config.OpBotChannelId;
     _messageDeleter    = new MessageDeleter();
     _defaultOperations = new DefaultOperations();
     _asyncLock         = new AsyncLock();
     _alertMembers      = new AlertMembers();
     _ops                   = config.Ops;
     _stopApplication       = config.StopApplication;
     _ops.OperationDeleted += OperationClosed;
     _ops.OperationUpdated += OperationUpdated;
 }