Пример #1
0
        public PrefixCommandHandler(IServiceProvider provider, DiscordSocketClient client,
                                    CommandServiceConfig commandServiceConfig, CommandHandlerOptions options,
                                    CustomModuleBuilder moduleBuilder,
                                    IEnumerable <IPluginFactory> pluginFactories,
                                    ILogger <PrefixCommandHandler> logger, CommandService commandService, GuildConfigRepository guildConfigRepository, RepeatRepository repeatRepository)
            : base(provider, client, commandServiceConfig, moduleBuilder, pluginFactories, logger, commandService)
        {
            this.Options = options;
            this.logger  = logger;

            this.CommandTriggered += this.CommandTriggeredAsync;
            this.CommandMissing   += this.CommandMissingAsync;
            this.CommandSucceeded += this.CommandSucceededAsync;
            this.CommandFailed    += this.CommandFailedAsync;
            this.CommandExecuted  += this.CommandExecutedAsync;

            this._guildConfigRepository = guildConfigRepository;
            this._repeatRepository      = repeatRepository;
        }
Пример #2
0
 public RepeatModule(RepeatRepository repository, PrefixCommandHandler commandHandler)
 {
     this._repository     = repository;
     this._commandHandler = commandHandler;
 }
Пример #3
0
 public QuotedCommandHandler(IServiceProvider provider, DiscordSocketClient client,
                             CommandServiceConfig commandServiceConfig, CommandHandlerOptions options, CustomModuleBuilder moduleBuilder,
                             IEnumerable <IPluginFactory> pluginFactories,
                             ILogger <PrefixCommandHandler> logger, CommandService commandService, GuildConfigRepository guildConfigRepository, RepeatRepository repeatRepository)
     : base(provider, client, commandServiceConfig, options, moduleBuilder, pluginFactories, logger, commandService, guildConfigRepository, repeatRepository)
 {
     base.logger = logger;
 }