Ejemplo n.º 1
0
 public async Task CatFact(CommandContext ctx)
 {
     var results = CatService.GetCatFactAsync().Result;
     var output  = new DiscordEmbedBuilder()
                   .WithDescription($":cat: {JObject.Parse(results)["fact"]}")
                   .WithColor(DiscordColor.Orange);
     await ctx.RespondAsync(embed : output.Build()).ConfigureAwait(false);
 }
Ejemplo n.º 2
0
 public void GetCatFact()
 {
     Assert.IsNotNull(CatService.GetCatFactAsync().Result);
 }