Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
msaroufim committed Nov 18, 2024
1 parent 840be98 commit d8e707c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions discord-bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ async def on_message(message):

# Trigger GitHub Action
run_id = await trigger_github_action(script_content, attachment.filename)
# Wait a bit longer for the run to be created
await asyncio.sleep(5)

# TODO: This is is very hacky
await asyncio.sleep(10)

if run_id:
logger.info(f"Successfully triggered workflow with run ID: {run_id}")
Expand Down Expand Up @@ -247,6 +248,7 @@ async def on_message(message):
except Exception as e:
logger.error(f"Error processing request: {str(e)}", exc_info=True)
await thread.send(f"Error processing request: {str(e)}")

break

if not any(att.filename.endswith('.py') for att in message.attachments):
Expand Down

0 comments on commit d8e707c

Please sign in to comment.