Spaces:
Runtime error
Runtime error
random shuffle
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ import json
|
|
6 |
import datetime
|
7 |
import requests
|
8 |
import os.path
|
|
|
9 |
import gspread
|
10 |
import re
|
11 |
|
@@ -118,7 +119,10 @@ async def update_sheet(ctx):
|
|
118 |
|
119 |
|
120 |
verified_role = guild.get_role(900063512829755413)
|
121 |
-
|
|
|
|
|
|
|
122 |
print(f"member: {member}")
|
123 |
string_user_id = str(member.id)
|
124 |
string_user_id_2 = string_user_id[:-5]
|
|
|
6 |
import datetime
|
7 |
import requests
|
8 |
import os.path
|
9 |
+
import random
|
10 |
import gspread
|
11 |
import re
|
12 |
|
|
|
119 |
|
120 |
|
121 |
verified_role = guild.get_role(900063512829755413)
|
122 |
+
members = verified_role.members
|
123 |
+
random.shuffle(members)
|
124 |
+
|
125 |
+
for member in members:
|
126 |
print(f"member: {member}")
|
127 |
string_user_id = str(member.id)
|
128 |
string_user_id_2 = string_user_id[:-5]
|