Update QuoteCommands.cs
This commit is contained in:
parent
3939aefa56
commit
b0e92ea4d2
@ -38,7 +38,7 @@ namespace NadekoBot.Modules.Utility
|
|||||||
}
|
}
|
||||||
|
|
||||||
[NadekoCommand, Usage, Description, Aliases]
|
[NadekoCommand, Usage, Description, Aliases]
|
||||||
[RequireContext(ContextType.Guild)]
|
// [RequireContext(ContextType.Guild)]
|
||||||
public async Task ShowQuote(IUserMessage umsg, [Remainder] string keyword)
|
public async Task ShowQuote(IUserMessage umsg, [Remainder] string keyword)
|
||||||
{
|
{
|
||||||
var channel = (ITextChannel)umsg.Channel;
|
var channel = (ITextChannel)umsg.Channel;
|
||||||
@ -52,7 +52,7 @@ namespace NadekoBot.Modules.Utility
|
|||||||
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).ConfigureAwait(false);
|
quote = await uow.Quotes.GetRandomQuoteByKeywordAsync.ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (quote == null)
|
if (quote == null)
|
||||||
|
Loading…
Reference in New Issue
Block a user