public async Task Execute(IJobExecutionContext context) { var iogrFetcher = new IOGRFetcher(); string url = await iogrFetcher.GetNewSeedPermalink(); await Scheduler.Owner.PostAnnouncement(url); }
public Bot(Scheduler scheduler) { iogrFetcher = new IOGRFetcher(); this.scheduler = scheduler; client = new DiscordSocketClient(); client.Log += LogAsync; client.Ready += ReadyAsync; client.LoggedOut += LoggedOutAsync; client.MessageReceived += MessageReceivedAsync; }