コード例 #1
0
        public async Task Execute(IJobExecutionContext context)
        {
            var    iogrFetcher = new IOGRFetcher();
            string url         = await iogrFetcher.GetNewSeedPermalink();

            await Scheduler.Owner.PostAnnouncement(url);
        }
コード例 #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;
        }