Exemple #1
0
        public async Task GetMediaInfo(string media)
        {
            if (!string.IsNullOrWhiteSpace(media))
            {
                IEnumerable <TasteItem> info = await _tasteService.GetInfo(media);

                if (!info.Any())
                {
                    await ReplyAsync($"No information found related with {media}.");
                }

                await Task.WhenAll(info.Select(i => ReplyAsync("", false, EmbedViews.TasteItem(i))));
            }
        }
Exemple #2
0
        public async Task GetMediaRecommendation(string media)
        {
            if (!string.IsNullOrWhiteSpace(media))
            {
                IEnumerable <TasteItem> recommendation = await _tasteService.GetRecommendation(media);

                if (!recommendation.Any())
                {
                    await ReplyAsync($"No recommendation found based on {media}.");
                }

                await Task.WhenAll(recommendation.Select(i => ReplyAsync("", false, EmbedViews.TasteItem(i))));
            }
        }
Exemple #3
0
 public async Task Commands()
 {
     await ReplyAsync(string.Empty, false, EmbedViews.Commands(_client.CurrentUser, _config.PayPalUrl));
 }
Exemple #4
0
 public async Task Donate()
 {
     await ReplyAsync(string.Empty, false, EmbedViews.Donate(_config.PayPalUrl));
 }