// Public members

        public OurFoodChainBotCommandHandlingService(
            IOfcBotConfiguration configuration,
            IServiceProvider serviceProvider,
            IHelpService helpService,
            IResponsiveMessageService responsiveMessageService,
            DiscordSocketClient discordClient,
            global::Discord.Commands.CommandService commandService
            ) :
            base(configuration, serviceProvider, helpService, responsiveMessageService, discordClient, commandService)
        {
            botConfiguration = configuration;
        }
Exemplo n.º 2
0
        public CommandService(
            IBotConfiguration configuration,
            IServiceProvider serviceProvider,
            IHelpService helpService,
            IResponsiveMessageService responsiveMessageService,
            DiscordSocketClient discordClient,
            global::Discord.Commands.CommandService commandService
            )
        {
            this.configuration            = configuration;
            this.serviceProvider          = serviceProvider;
            this.helpService              = helpService;
            this.responsiveMessageService = responsiveMessageService;
            this.discordClient            = discordClient;
            DiscordCommandService         = commandService;

            this.discordClient.MessageReceived    += OnMessageReceivedAsync;
            DiscordCommandService.CommandExecuted += OnCommandExecutedAsync;
        }