Esempio n. 1
0
        public InputHandler(
            IDiscord discord,
            ILogger logger,
            INixProvider nixProvider,
            LavalinkService lavalink,
            MinecraftService minecraft)
        {
            this.discord     = discord;
            this.logger      = logger;
            this.nixProvider = nixProvider;

            services = new ServiceCollection()
                       .AddSingleton(discord)
                       .AddSingleton(discord.Client)
                       .AddSingleton(commands)
                       .AddSingleton(logger)
                       .AddSingleton(lavalink)
                       .AddSingleton(minecraft)
                       .AddSingleton <InteractiveService>()
                       .AddSingleton <AudioService>()
                       .AddSingleton <SpotifyService>()
                       .AddSingleton <EmbedService>()
                       .AddLavaNode(lava => lava.SelfDeaf = true)
                       .BuildServiceProvider();
        }
 public JoinHandler(IDiscord discord, ILogger logger, IDbStorage db, HamburgerUserProvider userProvider)
 {
     _discord      = discord;
     _logger       = logger;
     _db           = db;
     _userProvider = userProvider;
 }
Esempio n. 3
0
 public CommandHandler(IDiscord client, ILogger logger, IKernel services, IDbStorage dbStorage)
 {
     _client         = client;
     _commandService = new CommandService();
     _logger         = logger;
     _services       = services;
     _dbStorage      = dbStorage;
 }
Esempio n. 4
0
 public CommandHandler(IDiscord discord, IServiceProvider services, ILogWriter logger, EntityConvertor convertor)
 {
     _discord        = discord;
     _commandService = new CommandService();
     _services       = services;
     _logger         = logger;
     _convertor      = convertor;
 }
Esempio n. 5
0
 public HamburgerDiscord(IDiscord hamburgerDiscord, DiscordLogger dislogger, ILogger logger, CommandHandler commandHandler, JoinHandler joinHandler)
 {
     _discord        = hamburgerDiscord;
     _discordLogger  = dislogger;
     _logger         = logger;
     _commandHandler = commandHandler;
     _joinHandler    = joinHandler;
 }
Esempio n. 6
0
        public MiunieDiscord(IDiscord discord, DiscordLogger discordLogger, ILogWriter logger, CommandHandler commandHandler)
        {
            _discord        = discord;
            _discordLogger  = discordLogger;
            _logger         = logger;
            _commandHandler = commandHandler;

            _connectionState = Core.Entities.ConnectionState.DISCONNECTED;
        }
Esempio n. 7
0
 public CommandHandler(IDiscord discord, CommandService commandService, IServiceProvider services, ILogWriter logger, EntityConvertor convertor, IBotConfiguration botConfig)
 {
     _discord        = discord;
     _commandService = commandService;
     _services       = services;
     _logger         = logger;
     _convertor      = convertor;
     _botConfig      = botConfig;
 }
Esempio n. 8
0
        public BF3CoopViewModel(
            IGameService gameService,
            IDiscord discord
            , IDialogService dialogService)
        {
            DifficultyEnumerable = Enum.GetNames(typeof(ZCoopDifficulty));

            _gameService   = gameService;
            _discord       = discord;
            _dialogService = dialogService;
            _missions      = new[]
            {
                new CoopMissionModel
                {
                    Name        = "Operation Exodus",
                    Level       = ZCoopLevels.COOP_007,
                    Description =
                        "This is a horde mode limited to three massive waves of enemies attacking your defence targets (the High Mobility Vehicles marked by a blue dot)."
                },
                new CoopMissionModel
                {
                    Name        = "Fire From The Sky",
                    Level       = ZCoopLevels.COOP_006,
                    Description =
                        "Chopper mission. Support allied fireteams and destroy enemies. BMP, Mobile AA, and HMVs. Once all enemies are destroyed, and your friendly fireteams extract your High Value Target, you will complete this mission."
                },
                new CoopMissionModel
                {
                    Name        = "Exfiltration",
                    Level       = ZCoopLevels.COOP_009,
                    Description =
                        "Infiltrate a building stealthily and extract the HVT under heavy fire. Thermal scopes are available on the default weapons. Shooting the security cameras and making stealth kills (or simultaneous firearms takedowns) will allow you to enter without alarms."
                },
                new CoopMissionModel
                {
                    Name        = "Hit And Run",
                    Level       = ZCoopLevels.COOP_002,
                    Description =
                        "This is a straight-forward mission with a straight-forward goal - get to the garage and escape the terr'ists using a French-built, petrol-burning motor vehicle. The related extra condition for this mission is Push On."
                },
                new CoopMissionModel
                {
                    Name        = "Drop Em Like Liquid",
                    Level       = ZCoopLevels.COOP_003,
                    Description =
                        "This is a sniper team mission. The condition Bullseye is related to this mission."
                },
                new CoopMissionModel
                {
                    Name        = "The Eleventh Hour",
                    Level       = ZCoopLevels.COOP_010,
                    Description =
                        "Basically, Operation Metro with a lot of noxious foul-smelling gas on the train platform. You venture down into the metro station and takedown enemies as they come."
                }
            };
        }
Esempio n. 9
0
 public CommandHandler(IDiscord discord, IServiceProvider services, ILogWriter logger, EntityConvertor convertor, IBotConfiguration botConfig, ICommandProcessor commandProcessor)
 {
     _discord          = discord;
     _commandService   = new CommandService();
     _services         = services;
     _logger           = logger;
     _convertor        = convertor;
     _botConfig        = botConfig;
     _commandProcessor = commandProcessor;
 }
Esempio n. 10
0
        public MultiplayerGameWorker(
            ISettingsService settingsService
            , IZApi zloApi
            , ILog logger
            , IDiscord discord)
        {
            _settingsService = settingsService;
            _discord         = discord;
            _zloApi          = zloApi;
            _logger          = logger;

            _pipeLogger = new StringBuilder();
        }
Esempio n. 11
0
 public NixClient(
     IDiscord discord,
     ILogger logger,
     INixProvider nixProvider,
     IRegister register,
     InputHandler inputHandler)
 {
     this.discord      = discord;
     this.logger       = logger;
     this.nixProvider  = nixProvider;
     this.register     = register;
     this.inputHandler = inputHandler;
 }
Esempio n. 12
0
        public TestRangeGameWorker(
            ISettingsService settingsService
            , IDiscord discord
            , IZApi zloApi
            , ILog logger)
        {
            _settingsService = settingsService;
            _discord         = discord;
            _zloApi          = zloApi;
            _logger          = logger;

            _pipeLogger = new StringBuilder();
        }
Esempio n. 13
0
        public SettingsViewModel(
            ISettingsService settingsService,
            IEventService eventService,
            IDiscord discord,
            IKernel kernel)
        {
            _settingsService = settingsService;
            _eventService    = eventService;
            _discord         = discord;

            // vm parts
            ThemeSectionViewModel   = kernel.Get <ThemesSectionViewModel>();
            GeneralSectionViewModel = kernel.Get <GeneralSectionViewModel>();
            UpdatesSectionViewModel = kernel.Get <UpdatesSectionViewModel>();
        }
Esempio n. 14
0
        public GeneralSectionViewModel(
            IDialogService dialogService,
            ISettingsService settingsService,
            IEventService eventLog,
            IDiscord discord)
        {
            _dialogService   = dialogService;
            _settingsService = settingsService;
            _eventService    = eventLog;
            _discord         = discord;

            LocalizationEnumerable = new[]
            {
                new KeyValuePair <string, LocalizationEnum>("English", LocalizationEnum.EN),
                new KeyValuePair <string, LocalizationEnum>("Русский", LocalizationEnum.RU),
            };
        }
Esempio n. 15
0
        public AudioService(
            LavaNode lavaNode,
            ILogger logger,
            SpotifyService spotify,
            IDiscord discord)
        {
            this.lavaNode = lavaNode;
            this.logger   = logger;
            this.spotify  = spotify;
            this.discord  = discord;

            this.discord.Client.UserVoiceStateUpdated += OnVoiceStateUpdate;
            this.discord.Client.Disconnected          += OnDisconnection;
            this.discord.Client.Ready += OnReady;

            players = new();
            data    = new();
        }
Esempio n. 16
0
 public AnnouncementsController(IRepository repository, IDiscord discord)
 {
     _repository = repository;
     _discord    = discord;
 }
Esempio n. 17
0
 public MiunieDiscord(IDiscord discord, DiscordLogger discordLogger, CommandServiceFactory cmdServiceFactory)
 {
     _discord = discord;
     _discord.Client.DebugLogger.LogMessageReceived += discordLogger.Log;
     cmdServiceFactory.Create(_discord.Client);
 }
Esempio n. 18
0
 public DiscordMessagesAdapter(IDiscord discord, ILanguageProvider lang)
 {
     _discord = discord;
     _lang    = lang;
 }
Esempio n. 19
0
 public GeneralCommandModule(IDbStorage dbStorage, IDiscord client)
 {
     _dbStorage = dbStorage;
     _client    = client;
 }
Esempio n. 20
0
 public MiunieBot(IDiscord discord)
 {
     _discord = discord;
 }
Esempio n. 21
0
 public DiscordGuildsAdapter(IDiscord discord, EntityConvertor entityConvertor)
 {
     _discord         = discord;
     _entityConvertor = entityConvertor;
 }
 public DiscordMessagesAdapter(IDiscord discord, ILanguageProvider lang, ILogWriter log)
 {
     _discord = discord;
     _lang    = lang;
     _log     = log;
 }
 public MessagesController(IRepository repository, IDiscord discord)
 {
     _repository = repository;
     _discord    = discord;
 }
Esempio n. 24
0
 public DeathsController(IRepository repository, IDiscord discord)
 {
     _repository = repository;
     _discord    = discord;
 }
Esempio n. 25
0
 public Impersonation(IDiscord discord, ILogWriter logger)
 {
     _discord = discord;
     _logger  = logger;
 }
 public PlyDiscordConnection(IDiscord discord)
 {
     _discord = discord;
 }