Пример #1
0
 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;
 }
Пример #2
0
 public InfoModule(
     IOptions <SoraBotConfig> config,
     IPrefixService prefixService,
     IUserRepository userRepo,
     AudioStatsService audioStatsService)
 {
     _prefixService     = prefixService;
     _userRepo          = userRepo;
     _audioStatsService = audioStatsService;
     _config            = config.Value;
 }
Пример #3
0
 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));
 }
Пример #4
0
 public MiscModule(IOptions <SoraBotConfig> conf)
 {
     _config = conf?.Value ?? throw new ArgumentNullException(nameof(conf));
 }
Пример #5
0
 public HelpModule(CommandService cmdService, IPrefixService prefixService, IOptions <SoraBotConfig> config)
 {
     _cmdService    = cmdService;
     _prefixService = prefixService;
     _config        = config.Value;
 }
Пример #6
0
 public StatsController(DiscordSocketClient client, IOptions <SoraBotConfig> config)
 {
     _client = client;
     _config = config.Value;
 }