Cat and dog in embeds, avatar getter gets 1024px instead of 128, urban shows tags

This commit is contained in:
Runebaas 2017-11-11 16:44:47 +01:00
parent 45f289d071
commit 98a0a302df
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
4 changed files with 18 additions and 10 deletions

View file

@ -1,6 +1,7 @@
using System;
using System.Net.Http;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Geekbot.net.Lib;
using Newtonsoft.Json;
@ -33,7 +34,9 @@ namespace Geekbot.net.Commands
var stringResponse = await response.Content.ReadAsStringAsync();
var catFile = JsonConvert.DeserializeObject<CatResponse>(stringResponse);
await ReplyAsync(catFile.file);
var eb = new EmbedBuilder();
eb.ImageUrl = catFile.file;
await ReplyAsync("", false, eb.Build());
}
catch (HttpRequestException e)
{