Esempio n. 1
0
 public AbfConfigurationProvider(IOptions <AbfConfiguration> config)
 {
     Configuration = config.Value;
 }
Esempio n. 2
0
 public HelpCommands(CommandService commands, AbfConfigurationProvider configuration)
 {
     _commands      = commands;
     _configuration = configuration.Configuration;
 }
Esempio n. 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;
 }