From f25367142744354c5fbe72334182bfd38f5035a9 Mon Sep 17 00:00:00 2001 From: Someone Date: Sun, 9 Jan 2022 01:17:25 +0100 Subject: [PATCH] modules/TACommandWipeChannel.py --- modules/TACommandWipeChannel.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/TACommandWipeChannel.py b/modules/TACommandWipeChannel.py index 11ea3a6..655fbda 100644 --- a/modules/TACommandWipeChannel.py +++ b/modules/TACommandWipeChannel.py @@ -4,13 +4,13 @@ -from AbstractCommand import * +from AbstractCommand import AbstractCommand class TACommandWipeChannel(AbstractCommand): TRIGGER = "ta-wipe-channel" CONFIG = {"display_name": "somebot-command", "auto_complete": True, "auto_complete_hint": "'--really-all'|", } - CONFIG["auto_complete_desc"] = CONFIG["description"] = "Delete all not-pinned posts in channel (optionally: only by ). There is no undo. [TEAM_ADMIN]" + CONFIG["auto_complete_desc"] = CONFIG["description"] = "🔇 Delete all not-pinned posts in channel (optionally: only by ). There is no undo. [TEAM_ADMIN]" def on_POST(self, request, data): @@ -30,5 +30,5 @@ class TACommandWipeChannel(AbstractCommand): if (data["text"].strip() == "--really-all") or (data["text"].strip() == "--system" and p["type"].startswith("system_")) or (data["text"].strip() != "" and u["id"] == p["user_id"]) or (data["text"].strip() == ""): self.bot.api.delete_post(p["id"]) - request.cmd_respond_text_temp("### ``Done.`` :)") self.bot.debug_chan("``/ta-wipe-channel "+data["text"].strip()+"`` used by ``@"+data["user_name"]+"`` in ``"+data["team_domain"]+"::"+data["channel_name"]+"``") + request.respond_cmd_temp("## :white_check_mark: Success! :)") -- 2.43.0