msg = ""
for chan in self.bot.api.get_team_channels(self.TEAM_ID):
#check against ban list and get the last 10 posts, if all of them are newer than min_timestamp: join
- if not chan["id"] in self.skip_chann_ids and self.channel_index[chan["id"]] > timestamp:
+ if chan["id"] not 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"]