From e14d2a4e7cc091968a2118839bc4777551447af3 Mon Sep 17 00:00:00 2001 From: Someone Date: Wed, 3 Aug 2022 05:11:14 +0200 Subject: [PATCH] modules/TACommandSyncFSInf.py --- modules/TACommandSyncFSInf.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/TACommandSyncFSInf.py b/modules/TACommandSyncFSInf.py index ea504a0..a7a2cfb 100644 --- a/modules/TACommandSyncFSInf.py +++ b/modules/TACommandSyncFSInf.py @@ -14,7 +14,7 @@ class TACommandSyncFSInf(AbstractCommand): CONFIG = {"display_name": "somebot-command", "auto_complete": True, "auto_complete_hint": "'out-out'|'opt-in' []|'sync'", } - CONFIG["auto_complete_desc"] = CONFIG["description"] = AbstractCommand.ICON_PUBLIC+"Manage own fsinf-channel access/auto-joins. [FSINF]" + CONFIG["auto_complete_desc"] = CONFIG["description"] = AbstractCommand.ICON_PUBLIC+"Manage fsinf-channel auto-joins. [FSINF]" def __init__(self, team_id, managed_teams, fsinf_intern_channelid, ignore_accounts_channelid, fsinf_teams_and_channels, datadir): @@ -85,10 +85,11 @@ class TACommandSyncFSInf(AbstractCommand): all_users = {u["id"]:u["username"] for u in self.bot.api.get_users()} fsinf_aktive_userids = fsinf_intern_userids-fsinf_ignored_userids + request.respond_cmd_temp("## :white_check_mark: Success! :)\n#### Sync started. See ~debug for details.") - request.respond_cmd_chan(cleandoc(""" + dbg_post = self.bot.debug_chan(cleandoc(""" ## ``/fsinf-access sync`` - These accounts were detected to be fsinf-intern: + These accounts were detected to be fsinf-intern by being in ~off-topic: ``"""+str(sorted([all_users[u] for u in fsinf_intern_userids]))+"""`` These accounts were detected to be ignored (in ~sync-fsinf-ignore -> excluded): @@ -113,7 +114,7 @@ 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.respond_cmd_chan("## :white_check_mark: Success! :)", http_code=000) + self.bot.debug_chan("## :white_check_mark: Success! :)", root_id=dbg_post['id']) def _load_and_merge_optout_data(self, path, to_merge_with): -- 2.43.0