From bce7d0c59e535028db5beddf8ec3b55ff6042a7d Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 10 Jan 2022 18:13:06 +0100 Subject: [PATCH] modules/CommandJoinAll.py --- modules/CommandJoinAll.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/CommandJoinAll.py b/modules/CommandJoinAll.py index 5b73807..324eeb2 100644 --- a/modules/CommandJoinAll.py +++ b/modules/CommandJoinAll.py @@ -21,9 +21,9 @@ class CommandJoinAll(AbstractCommand): def on_POST(self, request, data): msg = "" - for c in self.bot.api.get_team_channels(self.TEAM_ID): - if not c["id"] in self.skip_chann_ids: - self.bot.api.add_user_to_channel(c["id"], data["user_id"]) - msg += "\n + ~"+c["name"] + for chan in self.bot.api.get_team_channels(self.TEAM_ID): + if not chan["id"] in self.skip_chann_ids: + self.bot.api.add_user_to_channel(chan["id"], data["user_id"]) + msg += "\n + ~"+chan["name"] request.respond_cmd_temp("## :white_check_mark: Success! :)\nYou joined all the public channels in the team:\n{}\nA reload might be needed to display the updated list of channels".format(msg)) -- 2.43.0