Esempio n. 1
0
        public async Task ReplyMovieCollectionAsync(ulong chanId, string collectionName)
        {
            var search = await _client.SearchCollectionAsync(collectionName);

            if (search.Results.Count < 1)
            {
                await _discordMessage.SendDiscordMessageAsync(chanId, $"No Results Found for {collectionName}");

                return;
            }

            var collection = await _client.GetCollectionAsync(search.Results.First().Id);

            var embed = new DisukuEmbed
            {
                Title       = collection.Name,
                Description = collection.Overview,
                ImageUrl    = $"http://image.tmdb.org/t/p/w500{collection.BackdropPath}",
                Thumbnail   = $"http://image.tmdb.org/t/p/w500{collection.PosterPath}",
                Url         = $"https://www.themoviedb.org/collection/{collection.Id}",
                Footer      = $"Collection Size: {collection.Parts.Count}"
            };

            await _discordMessage.SendDiscordEmbedAsync(chanId, embed);
        }
Esempio n. 2
0
 public async Task ReplyUserAsync(ulong chanId, DisukuUser user)
 {
     await _discordMessage.SendDiscordMessageAsync(chanId, user);
 }
Esempio n. 3
0
        public async Task ReplyGuildAsync(ulong chanId, DisukuGuild disukuGuild)
        {
            var guild = await _guildProvider.GetGuild(disukuGuild);

            await _discordMessage.SendDiscordMessageAsync(chanId, guild);
        }
Esempio n. 4
0
        public async Task Add(ulong chanId, Quote quote)
        {
            await _dataStore.Insert(quote, TableName);

            await _discordMessage.SendDiscordMessageAsync(chanId, "Quote should be added.");
        }