Пример #1
0
        public async Task RandomMeme()
        {
            var message = await Context.Channel.SendMessageAsync("Getting a spicy meme right now...");

            Meme meme = await redditService.GetRandomMemeAsync();

            previousMemeUrl = meme.ImageUrl;
            await message.ModifyAsync(m => m.Content = meme.ToString());
        }
Пример #2
0
        public async void Execute()
        {
            Meme meme = await redditService.GetRandomTopMemeAsync();

            var channel = discordClient.GetGuild(Convert.ToUInt64(configuration["GuildId"]))
                          .GetTextChannel(Convert.ToUInt64(configuration["Modules:Memes:ChannelId"]));

            await channel.SendMessageAsync(meme.ToString());
        }