modules/CACommandModDelDelayed.py
authorSomeone <someone@somenet.org>
Sat, 8 Jan 2022 22:39:53 +0000 (23:39 +0100)
committerSomeone <someone@somenet.org>
Sat, 8 Jan 2022 22:39:53 +0000 (23:39 +0100)
modules/CACommandModDelDelayed.py

index 018fa5c5ceb3613ea3a79f64b982b1ff3044f68a..b04dd53cd877defaf30c533faf71d085d9b5f3db 100644 (file)
@@ -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! :)")