Skip to content

Commit

Permalink
fix search output when it is too many chars
Browse files Browse the repository at this point in the history
  • Loading branch information
bghira committed Jun 2, 2024
1 parent ada9751 commit 823371c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord_tron_master/cogs/image/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ async def search_prompts(self, ctx, *, search_string: str):
output_string = f"{ctx.author.mention} I found {found_string} matching your search, `{search_string}`:"
for prompt in discovered_prompts[:10]:
output_string = f"{output_string}\n- `{prompt[0]}`"
await ctx.send(output_string)
await DiscordBot.send_large_message(ctx=ctx, text=output_string)
except Exception as e:
logger.error("Caught error when searching prompts: " + str(e))
await ctx.send(
Expand Down

0 comments on commit 823371c

Please sign in to comment.