From 872c8aeeb408533fe0d3da83230322cd9c4cf418 Mon Sep 17 00:00:00 2001 From: twonfi Date: Thu, 28 Aug 2025 18:05:57 -0700 Subject: [PATCH] fix: Return once macro run --- nephthys/macros/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nephthys/macros/__init__.py b/nephthys/macros/__init__.py index 6a18a99..0d7b0b4 100644 --- a/nephthys/macros/__init__.py +++ b/nephthys/macros/__init__.py @@ -18,7 +18,7 @@ macros = [Resolve, HelloWorld, FAQ, Identity, Fraud, ShipCertQueue, Thread] async def run_macro( name: str, ticket: Ticket, helper: User, macro_ts: str, text: str, **kwargs: Any -) -> None | bool: +) -> bool: """ Run the macro with the given name and arguments. """ @@ -30,6 +30,7 @@ async def run_macro( await env.slack_client.chat_delete( channel=env.slack_help_channel, ts=macro_ts, token=env.slack_user_token ) + return True await send_heartbeat( f"Macro {name} not found from <@{helper.slackId}>.",