Ejemplo n.º 1
0
        public async Task Execute(IJobExecutionContext context)
        {
            var    iogrFetcher = new IOGRFetcher();
            string url         = await iogrFetcher.GetNewSeedPermalink();

            await Scheduler.Owner.PostAnnouncement(url);
        }
Ejemplo n.º 2
0
        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;
        }