diff --git a/src/NadekoBot/Modules/Searches/Commands/AnimeSearchCommands.cs b/src/NadekoBot/Modules/Searches/Commands/AnimeSearchCommands.cs index b90be209..52f9fda0 100644 --- a/src/NadekoBot/Modules/Searches/Commands/AnimeSearchCommands.cs +++ b/src/NadekoBot/Modules/Searches/Commands/AnimeSearchCommands.cs @@ -77,7 +77,8 @@ namespace NadekoBot.Modules.Searches .WithImageUrl(animeData.image_url_lge) .AddField(efb => efb.WithName("Episodes").WithValue(animeData.total_episodes.ToString()).WithIsInline(true)) .AddField(efb => efb.WithName("Status").WithValue(animeData.AiringStatus.ToString()).WithIsInline(true)) - .AddField(efb => efb.WithName("Genres").WithValue(String.Join(", ", animeData.Genres)).WithIsInline(true)); + .AddField(efb => efb.WithName("Genres").WithValue(String.Join(", ", animeData.Genres)).WithIsInline(true)) + .WithFooter(efb => efb.WithText("Score: " + animeData.average_score + " / 100")); await channel.EmbedAsync(embed.Build()).ConfigureAwait(false); } @@ -99,13 +100,14 @@ namespace NadekoBot.Modules.Searches } var embed = new EmbedBuilder().WithColor(NadekoBot.OkColor) - .WithDescription(mangaData.Synopsis) + .WithDescription(mangaData.Synopsis.Replace("
", Environment.NewLine)) .WithTitle(mangaData.title_english) .WithUrl(mangaData.Link) .WithImageUrl(mangaData.image_url_lge) .AddField(efb => efb.WithName("Episodes").WithValue(mangaData.total_chapters.ToString()).WithIsInline(true)) .AddField(efb => efb.WithName("Status").WithValue(mangaData.publishing_status.ToString()).WithIsInline(true)) - .AddField(efb => efb.WithName("Genres").WithValue(String.Join(", ", mangaData.Genres)).WithIsInline(true)); + .AddField(efb => efb.WithName("Genres").WithValue(String.Join(", ", mangaData.Genres)).WithIsInline(true)) + .WithFooter(efb => efb.WithText("Score: " + mangaData.average_score + " / 100")); await channel.EmbedAsync(embed.Build()).ConfigureAwait(false); } diff --git a/src/NadekoBot/Modules/Searches/Commands/Models/AnimeResult.cs b/src/NadekoBot/Modules/Searches/Commands/Models/AnimeResult.cs index 3d08da6e..e5d779c0 100644 --- a/src/NadekoBot/Modules/Searches/Commands/Models/AnimeResult.cs +++ b/src/NadekoBot/Modules/Searches/Commands/Models/AnimeResult.cs @@ -13,6 +13,8 @@ namespace NadekoBot.Modules.Searches.Models public string description; public string image_url_lge; public string[] Genres; + public string average_score; + public string Link => "http://anilist.co/anime/" + id; public string Synopsis => description?.Substring(0, description.Length > 500 ? 500 : description.Length) + "..."; } diff --git a/src/NadekoBot/Modules/Searches/Commands/Models/MangaResult.cs b/src/NadekoBot/Modules/Searches/Commands/Models/MangaResult.cs index 5e262209..a0d47962 100644 --- a/src/NadekoBot/Modules/Searches/Commands/Models/MangaResult.cs +++ b/src/NadekoBot/Modules/Searches/Commands/Models/MangaResult.cs @@ -10,6 +10,7 @@ namespace NadekoBot.Modules.Searches.Models public int total_volumes; public string description; public string[] Genres; + public string average_score; public string Link => "http://anilist.co/manga/" + id; public string Synopsis => description?.Substring(0, description.Length > 500 ? 500 : description.Length) + "..."; }