|
@@ -86,6 +86,7 @@ class changedcname(commands.Cog):
|
|
|
""")
|
|
""")
|
|
|
for internal_identifier in cursor.fetchall():
|
|
for internal_identifier in cursor.fetchall():
|
|
|
badgenr.append(internal_identifier[0])
|
|
badgenr.append(internal_identifier[0])
|
|
|
|
|
+ print(badgenr)
|
|
|
|
|
|
|
|
cursor.execute("""
|
|
cursor.execute("""
|
|
|
SELECT players.charinfo FROM ny_groups_meta,
|
|
SELECT players.charinfo FROM ny_groups_meta,
|
|
@@ -102,6 +103,7 @@ class changedcname(commands.Cog):
|
|
|
""")
|
|
""")
|
|
|
for discord in cursor.fetchall():
|
|
for discord in cursor.fetchall():
|
|
|
discord_raw.append((discord))
|
|
discord_raw.append((discord))
|
|
|
|
|
+ print(discord_raw)
|
|
|
|
|
|
|
|
|
|
|
|
|
#get users to the discordIDs
|
|
#get users to the discordIDs
|
|
@@ -131,7 +133,10 @@ class changedcname(commands.Cog):
|
|
|
ignored_duplicates.add(user.id) # Add to ignored duplicates
|
|
ignored_duplicates.add(user.id) # Add to ignored duplicates
|
|
|
ignored_duplicates.add(badge)
|
|
ignored_duplicates.add(badge)
|
|
|
ignored_duplicates.add(cinfo)
|
|
ignored_duplicates.add(cinfo)
|
|
|
|
|
+
|
|
|
continue
|
|
continue
|
|
|
|
|
+ print(ignored_duplicates)
|
|
|
|
|
+
|
|
|
|
|
|
|
|
seen_user_ids.add(user.id)
|
|
seen_user_ids.add(user.id)
|
|
|
unique_users.append(user)
|
|
unique_users.append(user)
|
|
@@ -151,6 +156,8 @@ class changedcname(commands.Cog):
|
|
|
except (json.JSONDecodeError, KeyError, TypeError):
|
|
except (json.JSONDecodeError, KeyError, TypeError):
|
|
|
firstname.append("")
|
|
firstname.append("")
|
|
|
lastname.append("")
|
|
lastname.append("")
|
|
|
|
|
+ print(firstname)
|
|
|
|
|
+ print(lastname)
|
|
|
|
|
|
|
|
|
|
|
|
|
#change username
|
|
#change username
|