diff --git a/Points.py b/Points.py index 280ae5a..934d18b 100644 --- a/Points.py +++ b/Points.py @@ -264,7 +264,8 @@ class Points(commands.Cog): np.save("pointscount.npy", pointsCount) # Add new/unknown members: - memberList = self.bot.get_channel(self.bot.hdChannels["shitpost"]).members + list_channel = self.bot.get_channel(self.bot.hdChannels["shitpost"]) + memberList = list_channel.members if list_channel else [] for member in memberList: # Give new members 100 points if member.id not in pointsCount.keys() and not member.bot: