Update QuoteCommands.cs
This commit is contained in:
parent
13d7ec2805
commit
6217ec9668
@ -49,10 +49,11 @@ namespace NadekoBot.Modules.Utility
|
|||||||
keyword = keyword.ToUpperInvariant();
|
keyword = keyword.ToUpperInvariant();
|
||||||
|
|
||||||
Quote quote;
|
Quote quote;
|
||||||
// using (var uow = DbHandler.Instance.GetUnitOfWork())
|
using (var uow = DbHandler.Instance.GetUnitOfWork())
|
||||||
// {
|
{
|
||||||
// quote = await uow.Quotes.GetRandomQuoteByKeywordAsync(channel.Guild.Id, keyword).ConfigureAwait(false);
|
// quote = await uow.Quotes.GetRandomQuoteByKeywordAsync(channel.Guild.Id, keyword).ConfigureAwait(false);
|
||||||
// }
|
quote = await uow.Quotes.GetRandomQuoteByKeywordAsync(keyword, keyword).ConfigureAwait(false);
|
||||||
|
}
|
||||||
|
|
||||||
if (quote == null)
|
if (quote == null)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user