Urban Dictionary command, small improvents in message handler, emojis are in embeds now, avatar command

This commit is contained in:
Runebaas 2017-11-11 16:20:26 +01:00
parent 667d928ca4
commit 45f289d071
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
7 changed files with 168 additions and 27 deletions

View file

@ -1,6 +1,7 @@
using System;
using System.Text;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Geekbot.net.Lib;
@ -30,9 +31,16 @@ namespace Geekbot.net.Commands
{
await ReplyAsync("I can't take that much at once!");
return;
}
await ReplyAsync($"*{Context.User.Username}#{Context.User.Discriminator} said:*");
await ReplyAsync(emojis);
}
var eb = new EmbedBuilder();
eb.WithAuthor(new EmbedAuthorBuilder()
{
IconUrl = Context.User.GetAvatarUrl(),
Name = $"{Context.User.Username}#{Context.User.Discriminator}"
});
eb.WithColor(new Color(59, 136, 195));
eb.Description = emojis;
await ReplyAsync("", false, eb.Build());
}
catch (Exception e)
{