diff --git a/Geekbot.net/Commands/AvatarGetter.cs b/Geekbot.net/Commands/AvatarGetter.cs index aa968db..41be8af 100644 --- a/Geekbot.net/Commands/AvatarGetter.cs +++ b/Geekbot.net/Commands/AvatarGetter.cs @@ -16,7 +16,7 @@ namespace Geekbot.net.Commands } [Command("avatar", RunMode = RunMode.Async)] - [Remarks(CommandCategories.Randomness)] + [Remarks(CommandCategories.Helpers)] [Summary("Get someones avatar")] public async Task getAvatar([Remainder, Summary("user")] IUser user = null) { @@ -26,7 +26,8 @@ namespace Geekbot.net.Commands { user = Context.User; } - await ReplyAsync(user.GetAvatarUrl()); + var url = user.GetAvatarUrl().Replace("128", "1024"); + await ReplyAsync(url); } catch (Exception e) { diff --git a/Geekbot.net/Commands/Cat.cs b/Geekbot.net/Commands/Cat.cs index 6b83122..57a3289 100644 --- a/Geekbot.net/Commands/Cat.cs +++ b/Geekbot.net/Commands/Cat.cs @@ -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(stringResponse); - await ReplyAsync(catFile.file); + var eb = new EmbedBuilder(); + eb.ImageUrl = catFile.file; + await ReplyAsync("", false, eb.Build()); } catch (HttpRequestException e) { diff --git a/Geekbot.net/Commands/Dog.cs b/Geekbot.net/Commands/Dog.cs index 6a19741..978e5dd 100644 --- a/Geekbot.net/Commands/Dog.cs +++ b/Geekbot.net/Commands/Dog.cs @@ -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 dogFile = JsonConvert.DeserializeObject(stringResponse); - await ReplyAsync(dogFile.url); + var eb = new EmbedBuilder(); + eb.ImageUrl = dogFile.url; + await ReplyAsync("", false, eb.Build()); } catch (HttpRequestException e) { diff --git a/Geekbot.net/Commands/UrbanDictionary.cs b/Geekbot.net/Commands/UrbanDictionary.cs index ffd1394..2bb3c66 100644 --- a/Geekbot.net/Commands/UrbanDictionary.cs +++ b/Geekbot.net/Commands/UrbanDictionary.cs @@ -20,7 +20,7 @@ namespace Geekbot.net.Commands } [Command("urban", RunMode = RunMode.Async)] - [Remarks(CommandCategories.Randomness)] + [Remarks(CommandCategories.Helpers)] [Summary("Lookup something on urban dictionary")] public async Task urbanDefine([Remainder, Summary("word")] string word) { @@ -42,16 +42,17 @@ namespace Geekbot.net.Commands var definition = definitions.list.OrderBy(e => e.thumbs_up).First(); var eb = new EmbedBuilder(); - eb.Title = definition.word; + eb.WithAuthor(new EmbedAuthorBuilder() + { + Name = definition.word, + Url = definition.permalink + }); eb.WithColor(new Color(239,255,0)); eb.Description = definition.definition; eb.AddField("Example", definition.example); eb.AddInlineField("Upvotes", definition.thumbs_up); eb.AddInlineField("Downvotes", definition.thumbs_down); - eb.WithFooter(new EmbedFooterBuilder() - { - Text = definition.permalink - }); + eb.AddField("Tags", string.Join(", ", definitions.tags)); await ReplyAsync("", false, eb.Build()); }