Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bghira committed May 6, 2024
1 parent 2539dae commit 970f922
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions discord_tron_master/cogs/image/img2img.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ async def on_message(self, message):
return
elif 'SimpleTuner has launched. Hold onto your butts!' in message.content and message.author.bot:
# An application has posted a ST update. Let's remove previous updates and return.
logging.debug(f"Found a SimpleTuner update message from {message.author}. Removing previous messages.")
await self._clear_previous_simpletuner_messages(message)

return
Expand All @@ -51,6 +52,7 @@ async def on_message(self, message):
async def _clear_previous_simpletuner_messages(self, message):
# Look for the contents inside the `.*` at the beginning of the string. this is the search identifier.
import re
logging.debug(f"Running regex identifier search")
search_identifier = re.search(r"`.*`", message.content)
logging.debug(f"Search identifier: {search_identifier}")

Expand Down

0 comments on commit 970f922

Please sign in to comment.