BaumSplitter41 2 месяцев назад
Родитель
Сommit
06a34ce46f
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      VPD_BOT/cogs/change_name_badge.py

+ 3 - 4
VPD_BOT/cogs/change_name_badge.py

@@ -9,8 +9,6 @@ import time
 import mysql.connector
 import mysql.connector
 import json
 import json
 
 
-
-
 ## Note: to use this script on a other server you need to change the SQL querys. It is deactivatable in the config.cfg file.
 ## Note: to use this script on a other server you need to change the SQL querys. It is deactivatable in the config.cfg file.
 
 
 
 
@@ -127,7 +125,7 @@ class changedcname(commands.Cog):
                 continue 
                 continue 
 
 
             if user.id in seen_user_ids:
             if user.id in seen_user_ids:
-                print(f"Duplicate user found: {user.name} (ID: {user.id})")
+                #print(f"Duplicate user found: {user.name} (ID: {user.id})")
                 ignored_duplicates.append(user.id)
                 ignored_duplicates.append(user.id)
                 ignored_duplicates.append(badge)
                 ignored_duplicates.append(badge)
                 ignored_duplicates.append(cinfo)
                 ignored_duplicates.append(cinfo)
@@ -164,7 +162,8 @@ class changedcname(commands.Cog):
                 if member:
                 if member:
                     await member.edit(nick=nick)
                     await member.edit(nick=nick)
             except Exception as e:
             except Exception as e:
-                print(f"Failed to change nickname for {user.name}: {e}")
+                #print(f"Failed to change nickname for {user.name}: {e}")
+                continue
 
 
       
       
         cursor.close()
         cursor.close()