public HelpModule(CommandService commandService, IConfiguration config, DiscordClientHost clientHost) { _commandService = commandService; _discordSocketClient = clientHost.Client; _commandPrefix = config.GetValue <string>("CommandPrefix"); }
public CommandHost(IConfiguration config, IServiceProvider serviceProvider, DiscordClientHost clientHost, ILogger <CommandHost> logger) { _commandService = new CommandService(new CommandServiceConfig { DefaultRunMode = RunMode.Async, LogLevel = LogSeverity.Info }); _serviceProvider = serviceProvider; _clientHost = clientHost; _logger = logger; _clientHost.Client.MessageReceived += OnMessageReceivedAsync; _commandPrefix = config.GetValue <string>("CommandPrefix"); _commandService.Log += Log; }