Skip to content

Commit

Permalink
fix: slash command issue"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zero6992 committed Jul 10, 2023
1 parent 85ef99d commit cb950d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/message_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ async def send_split_message(self, response: str, message: Message):
if is_code_block:
code_block_chunks = [parts[i][j:j+char_limit] for j in range(0, len(parts[i]), char_limit)]
for chunk in code_block_chunks:
if self.is_replying_all:
if self.is_replying_all == "True":
await message.channel.send(f"```{chunk}```")
else:
await message.followup.send(f"```{chunk}```")
is_code_block = False
else:
non_code_chunks = [parts[i][j:j+char_limit] for j in range(0, len(parts[i]), char_limit)]
for chunk in non_code_chunks:
if self.is_replying_all:
if self.is_replying_all == "True":
await message.channel.send(chunk)
else:
await message.followup.send(chunk)
is_code_block = True
else:
if self.is_replying_all:
if self.is_replying_all == "True":
await message.channel.send(response)
else:
await message.followup.send(response)

0 comments on commit cb950d7

Please sign in to comment.