Skip to content

Commit

Permalink
sapces are needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mralext20 committed Jul 11, 2024
1 parent f1b2f99 commit e4a7760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alexBot/cogs/mudae.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def addSeriesFromRoll(self, interaction: discord.Interaction, message: dis
await interaction.response.send_message("This message does not contain an embed.", ephemeral=True)
return
# try extract series name
series_name = regex.findall(r'(.+\n?.+)\n?\*\*\d', message.embeds[0].description)[0].replace('\n', '')
series_name = regex.findall(r'(.+\n?.+)\n?\*\*\d', message.embeds[0].description)[0].replace('\n', ' ')
async with db.async_session() as session:
await session.merge(db.MudaeSeriesRequest(series=series_name, requestedBy=interaction.user.id))
await session.commit()
Expand All @@ -128,7 +128,7 @@ async def removeSeriesFromRoll(self, interaction: discord.Interaction, message:
await interaction.response.send_message("This message does not contain an embed.", ephemeral=True)
return
# try extract series name
series_name = regex.findall(r'(.+\n?.+)\n?\*\*\d', message.embeds[0].description)[0].replace('\n', '')
series_name = regex.findall(r'(.+\n?.+)\n?\*\*\d', message.embeds[0].description)[0].replace('\n', ' ')
async with db.async_session() as session:
await session.execute(
sqlalchemy.delete(db.MudaeSeriesRequest).where(
Expand Down

0 comments on commit e4a7760

Please sign in to comment.