From e35fa383a498568ee1b3959b3d07c5c714540a8f Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 6 Mar 2023 16:26:27 +0100 Subject: [PATCH] modules/CommandJoinAll.py --- modules/CommandJoinAll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/CommandJoinAll.py b/modules/CommandJoinAll.py index d13ca65..cd66bdd 100644 --- a/modules/CommandJoinAll.py +++ b/modules/CommandJoinAll.py @@ -79,7 +79,7 @@ class CommandJoinAll(AbstractCommand): msg = "" for chan in self.bot.api.get_team_channels(self.TEAM_ID): #check against ban list and get the last 7 posts, if all of them are newer than min_timestamp: join - if chan["id"] not in self.channel_index and chan["id"] not in self.skip_chann_ids and self.channel_index[chan["id"]] > timestamp: + if chan["id"] in self.channel_index and chan["id"] not in self.skip_chann_ids and self.channel_index[chan["id"]] > timestamp: self.bot.api.add_user_to_channel(chan["id"], data["user_id"]) msg += "\n + ~"+chan["name"] -- 2.43.0