diff --git a/Geekbot.net/Commands/Stats.cs b/Geekbot.net/Commands/Stats.cs index c800ed2..90e878a 100644 --- a/Geekbot.net/Commands/Stats.cs +++ b/Geekbot.net/Commands/Stats.cs @@ -46,7 +46,7 @@ namespace Geekbot.net.Commands .WithName(userInfo.Username)); eb.WithColor(new Color(221, 255, 119)); - var karma = _redis.HashGet($"{Context.Guild.Id}:Karma", userInfo.Id); + var karma = _redis.HashGet($"{Context.Guild.Id}:Karma", userInfo.Id.ToString()); var correctRolls = _redis.HashGet($"{Context.Guild.Id}:Rolls", userInfo.Id.ToString()); eb.AddInlineField("Discordian Since", $"{createdAt.Day}.{createdAt.Month}.{createdAt.Year} ({age} days)") diff --git a/Geekbot.net/Commands/UrbanDictionary.cs b/Geekbot.net/Commands/UrbanDictionary.cs index 65d6382..b14fbf4 100644 --- a/Geekbot.net/Commands/UrbanDictionary.cs +++ b/Geekbot.net/Commands/UrbanDictionary.cs @@ -36,7 +36,7 @@ namespace Geekbot.net.Commands var definitions = JsonConvert.DeserializeObject(stringResponse); if (definitions.list.Count == 0) { - await ReplyAsync("That word is not defined..."); + await ReplyAsync("That word hasn't been defined..."); return; } var definition = definitions.list.First(); @@ -49,7 +49,7 @@ namespace Geekbot.net.Commands }); eb.WithColor(new Color(239,255,0)); eb.Description = definition.definition; - eb.AddField("Example", definition.example); + eb.AddField("Example", definition.example ?? "(no example given...)"); eb.AddInlineField("Upvotes", definition.thumbs_up); eb.AddInlineField("Downvotes", definition.thumbs_down); eb.AddField("Tags", string.Join(", ", definitions.tags));