fix for sending def type instead of def

This commit is contained in:
Ben Harris 2017-12-05 14:31:30 -05:00
parent 0c7672ba84
commit f737922d3f
1 changed files with 3 additions and 2 deletions

View File

@ -52,12 +52,13 @@ namespace dotbot.Services
var key = msg.Content.Substring(_config["prefix"].Length);
if (db.Defs.Any(d => d.Id == key))
{
await context.Channel.SendMessageAsync($"**{key}**: {db.Defs.Find(key)}");
await context.Channel.SendMessageAsync($"**{key}**: {db.Defs.Find(key).Def}");
return;
}
}
}
await context.Channel.SendMessageAsync(result.ToString());
if (!result.ToString().Contains("UnknownCommand"))
await context.Channel.SendMessageAsync(result.ToString());
}
}