mirror of
https://github.com/System-End/nephthys.git
synced 2026-04-19 18:35:14 +00:00
fix: Return once macro run
This commit is contained in:
parent
d1c2aaf4cb
commit
872c8aeeb4
1 changed files with 2 additions and 1 deletions
|
|
@ -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}>.",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue