Beispiel #1
0
 public AbfConfigurationProvider(IOptions <AbfConfiguration> config)
 {
     Configuration = config.Value;
 }
Beispiel #2
0
 public HelpCommands(CommandService commands, AbfConfigurationProvider configuration)
 {
     _commands      = commands;
     _configuration = configuration.Configuration;
 }
Beispiel #3
0
 public DiscordService(AbfConfigurationProvider configProvider, IPrefixProvider prefixProvider, IServiceProvider services, DiscordBotConfiguration discordConfig = null)
     : base(TokenType.Bot, configProvider.Configuration.DiscordToken, prefixProvider, discordConfig)
 {
     _logger        = LogService.GetLogger("Discord");
     _configuration = configProvider.Configuration;
 }