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(); }
public Functions(IUnitOfWork unitOfWork, IBotHelper botHelper) { _unitOfWork = unitOfWork; _botHelper = botHelper; _telemetryClient = new TelemetryClient(); }