public WaifuModule( IWaifuService waifuService, IOptions <SoraBotConfig> config, ICoinRepository coinRepo, InteractiveService interactiveService) { _config = config?.Value ?? throw new ArgumentNullException(nameof(config)); _waifuService = waifuService; _coinRepo = coinRepo; _interactiveService = interactiveService; }
public InfoModule( IOptions <SoraBotConfig> config, IPrefixService prefixService, IUserRepository userRepo, AudioStatsService audioStatsService) { _prefixService = prefixService; _userRepo = userRepo; _audioStatsService = audioStatsService; _config = config.Value; }
public SoraBot( ILogger <SoraBot> logger, DiscordSocketClient socketClient, DiscordRestClient restClient, CommandService commandService, IServiceProvider serviceProvider, DiscordSerilogAdapter serilogAdapter, IOptions <SoraBotConfig> soraConfig, WeebService weebService, LavaNode lavaNode) { _logger = logger; _socketClient = socketClient; _restClient = restClient; _commandService = commandService; _serviceProvider = serviceProvider; _serilogAdapter = serilogAdapter; _weebService = weebService; _lavaNode = lavaNode; _config = soraConfig?.Value ?? throw new ArgumentNullException(nameof(soraConfig)); }
public MiscModule(IOptions <SoraBotConfig> conf) { _config = conf?.Value ?? throw new ArgumentNullException(nameof(conf)); }
public HelpModule(CommandService cmdService, IPrefixService prefixService, IOptions <SoraBotConfig> config) { _cmdService = cmdService; _prefixService = prefixService; _config = config.Value; }
public StatsController(DiscordSocketClient client, IOptions <SoraBotConfig> config) { _client = client; _config = config.Value; }