Bugfix in !urban and karma bugfix in !stats
This commit is contained in:
parent
2ef08ae924
commit
12919acf95
2 changed files with 3 additions and 3 deletions
|
@ -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)")
|
||||
|
|
|
@ -36,7 +36,7 @@ namespace Geekbot.net.Commands
|
|||
var definitions = JsonConvert.DeserializeObject<UrbanResponse>(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));
|
||||
|
|
Loading…
Reference in a new issue