Update QuoteCommands.cs
This commit is contained in:
		@@ -38,7 +38,7 @@ namespace NadekoBot.Modules.Utility
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        [NadekoCommand, Usage, Description, Aliases]
 | 
			
		||||
//        [RequireContext(ContextType.Guild)]
 | 
			
		||||
        [RequireContext(ContextType.Guild)]
 | 
			
		||||
        public async Task ShowQuote(IUserMessage umsg, [Remainder] string keyword)
 | 
			
		||||
        {
 | 
			
		||||
            var channel = (ITextChannel)umsg.Channel;
 | 
			
		||||
@@ -51,8 +51,7 @@ namespace NadekoBot.Modules.Utility
 | 
			
		||||
            Quote quote;
 | 
			
		||||
            using (var uow = DbHandler.Instance.GetUnitOfWork())
 | 
			
		||||
            {
 | 
			
		||||
//                quote = await uow.Quotes.GetRandomQuoteByKeywordAsync(channel.Guild.Id, keyword).ConfigureAwait(false);
 | 
			
		||||
                quote = await uow.Quotes.GetRandomQuoteByKeywordAsync(1 * 9999999, keyword).ConfigureAwait(false);
 | 
			
		||||
                quote = await uow.Quotes.GetRandomQuoteByKeywordAsync(channel.Guild.Id, keyword).ConfigureAwait(false);
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (quote == null)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user