Update code naar 2.0 versie van discordpy #17

Merged
jp merged 6 commits from 2.0-update into master 2022-11-02 22:25:26 +01:00
Showing only changes of commit 9512b9dc86 - Show all commits
+2 -1
View File
@@ -264,7 +264,8 @@ class Points(commands.Cog):
np.save("pointscount.npy", pointsCount) np.save("pointscount.npy", pointsCount)
# Add new/unknown members: # 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: for member in memberList:
# Give new members 100 points # Give new members 100 points
if member.id not in pointsCount.keys() and not member.bot: if member.id not in pointsCount.keys() and not member.bot: