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}))
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! :)")