From fbe2f4e5392c1a213891010c46fbcc42f20d637f Mon Sep 17 00:00:00 2001
From: Someone <someone@somenet.org>
Date: Sat, 12 Feb 2022 00:56:45 +0100
Subject: [PATCH] modules/TACommandSyncFSInf.py

---
 modules/TACommandSyncFSInf.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/modules/TACommandSyncFSInf.py b/modules/TACommandSyncFSInf.py
index bb4785a..45856ec 100644
--- a/modules/TACommandSyncFSInf.py
+++ b/modules/TACommandSyncFSInf.py
@@ -7,12 +7,12 @@ from inspect import cleandoc
 
 
 # pylint: disable=wrong-import-position
-from AbstractCommand import *
+from AbstractCommand import AbstractCommand
 class TACommandSyncFSInf(AbstractCommand):
     TRIGGER = "sync-fsinf"
     CONFIG = {"display_name": "somebot-command", "auto_complete": False,
              }
-    CONFIG["auto_complete_desc"] = CONFIG["description"] = "Sync TAs to other managed teams. [BOT_ADMIN]"
+    CONFIG["auto_complete_desc"] = CONFIG["description"] = AbstractCommand.ICON_PUBLIC+"Sync TAs to other managed teams. [BOT_ADMIN]"
 
 
     def __init__(self, team_id, managed_teams, fsinf_intern_channelid, ignore_accounts_channelid, fsinf_teams_and_channels):
@@ -25,7 +25,6 @@ class TACommandSyncFSInf(AbstractCommand):
 
 
     def on_POST(self, request, data):
-        raise Exception ("borked. low priority todo.")
         self._require_bot_admin(data) # will throw an exception if not. (Dont try-except: Its handled up the stack.)
 
 
@@ -34,7 +33,7 @@ class TACommandSyncFSInf(AbstractCommand):
         all_users = {u["id"]:u["username"] for u in self.bot.api.get_users()}
 
         fsinf_aktive_userids = fsinf_intern_userids-fsinf_altnasen_userids
-        self.bot.debug_chan(cleandoc("""
+        request.respond_cmd_chan(cleandoc("""
             ## ``/sync-fsinf``
             These accounts were detected to be fsinf-intern:
             ``"""+str(sorted([all_users[u] for u in fsinf_intern_userids]))+"""``
@@ -61,4 +60,4 @@ class TACommandSyncFSInf(AbstractCommand):
                     if not user_id in excluded_user_ids:
                         self.bot.api.add_user_to_channel(chan_id, user_id, exc=False)
 
-        request.cmd_respond_text_temp("### ``Done.`` :)")
+        request.respond_cmd_chan("## :white_check_mark: Success! :)")
-- 
2.43.0