Пример #1
0
 public Bot(IServiceProvider services)
 {
     _Services       = services;
     _DiscordWrapper = _Services.GetService <IDiscordWrapper>();
     _ConfigWrapper  = _Services.GetService <IConfigurationWrapper>();
     _Log            = _Services.GetService <ILogger <Bot> >();
     _BotHelper      = _Services.GetService <IBotHelper>();
     _Commands       = new CommandService();
 }
Пример #2
0
 public Functions(IUnitOfWork unitOfWork, IBotHelper botHelper)
 {
     _unitOfWork      = unitOfWork;
     _botHelper       = botHelper;
     _telemetryClient = new TelemetryClient();
 }