Skip to content
Permalink
Browse files
Update Chatbot.py
  • Loading branch information
singhi8 committed Nov 27, 2020
1 parent fd8b4e0 commit 62825825c672f592c7b0ae1543a1d2b188b243a5
Showing 1 changed file with 2 additions and 2 deletions.
@@ -346,7 +346,7 @@ memberCreated = []
async def getMembers():
while True:
#print("Getting Members")
for member in client.get_all_members(): #fetching the data in the dictionnarie into many dictionnaries
for member in client.get_all_members(): #fetching the data in the dictionaries into many dictionaries
memberName = member.name
roleFound = False
if member.activity is None:
@@ -358,7 +358,7 @@ async def getMembers():
else:
memberDict = {"member": member, "notif30": 1, "notif60": 1, "notif90": 1, "notifOnce": 0,
"lastnotif": datetime.utcnow(), 'lastAct': member.activity.name,
"actStart": datetime.utcnow()} # in this sections we organise the members based on their activity using if elif and else statements
"actStart": datetime.utcnow()} # in this section I organised the members based on their activity using if elif and else statements
for role in member.roles:
if role.name == "GameTime Users":
roleFound = True

0 comments on commit 6282582

Please sign in to comment.