Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bghira committed Jan 28, 2024
1 parent b08c5b8 commit 2bd07e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord_tron_master/cogs/image/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ async def get_statistics(self, ctx, user_id = None):
f"{ctx.author.mention} Statistics are not currently available at this time, try again later."
)

@commands.command(name='search', help='Search for a prompt in your history. Returns up to 15 prompts.')
@commands.command(name='search', help='Search for a prompt in your history. Returns up to 10 prompts.')
async def search_prompts(self, ctx, search_string: str):
try:
app = AppConfig.flask
Expand All @@ -179,7 +179,7 @@ async def search_prompts(self, ctx, search_string: str):
if len(discovered_prompts) > 1:
found_string = f"{len(discovered_prompts)} prompts"
output_string = f"{ctx.author.mention} I found {found_string} matching your search, `{search_string}`:"
for prompt in discovered_prompts[:15]:
for prompt in discovered_prompts[:10]:
output_string = f"{output_string}\n- `{prompt[0]}`"
await ctx.send(output_string)
except Exception as e:
Expand Down

0 comments on commit 2bd07e7

Please sign in to comment.