public NewMusicChecker(ILogger <NewMusicChecker> logger, INewMusicBotService newMusicBotService, IDiscordClientWrapper clientWrapper, IConfigurationProvider configurationProvider) { this.logger = logger; this.configuration = configurationProvider; this.clientWrapper = clientWrapper; this.client = clientWrapper.Client; client.Log += Log; this.newMusicBotService = newMusicBotService; schedule = CrontabSchedule.Parse(configuration.CheckSchedule, new CrontabSchedule.ParseOptions { IncludingSeconds = true }); nextRun = schedule.GetNextOccurrence(DateTime.Now); }
public IgnoreModule(INewMusicBotService service) => this.service = service;
public AddModule(INewMusicBotService service) => this.service = service;
public SelectModule(INewMusicBotService service) => this.service = service;
public RemoveModule(INewMusicBotService service) => this.service = service;