From 3a0e49378c9869268b2e7927246717bd9f7c09cf Mon Sep 17 00:00:00 2001 From: Someone Date: Sat, 8 Jan 2022 23:39:53 +0100 Subject: [PATCH] modules/CACommandModDelDelayed.py --- modules/CACommandModDelDelayed.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/CACommandModDelDelayed.py b/modules/CACommandModDelDelayed.py index 018fa5c..b04dd53 100644 --- a/modules/CACommandModDelDelayed.py +++ b/modules/CACommandModDelDelayed.py @@ -44,7 +44,6 @@ class CACommandModDelDelayed(AbstractCommand): request.respond_cmd_err("``/"+self.TRIGGER+"`` The command **``/"+post["props"]["cmd"]+"``** already affects this post. Undo said command before applying this one.") return - # do actual action att = [{"color":"#f35912", "text": "**This post was marked for deletion in 24 hours. Reason:**\n"+msg_text[1]}] post["props"].update(dict({"attachments":att, "somecleaner_autodelete":"day", "cmd":self.TRIGGER})) @@ -56,4 +55,4 @@ class CACommandModDelDelayed(AbstractCommand): self.bot.api.update_post(splitpath[5], message=post["message"], is_pinned=post["is_pinned"], has_reactions=post["has_reactions"], props=post["props"]) self.bot.debug_chan("``/"+self.TRIGGER+" "+data["text"].strip()+"`` used by ``@"+data["user_name"]+"`` in ``"+data["team_domain"]+"::"+data["channel_name"]+"``") - request.respond_interactive_temp("## :white_check_mark: Success! :)") + request.respond_cmd_temp("## :white_check_mark: Success! :)") -- 2.43.0