Răsfoiți Sursa

removed the logging prints

BaumSplitter41 2 luni în urmă
părinte
comite
06a34ce46f
1 a modificat fișierele cu 3 adăugiri și 4 ștergeri
  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 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.
 
 
@@ -127,7 +125,7 @@ class changedcname(commands.Cog):
                 continue 
 
             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(badge)
                 ignored_duplicates.append(cinfo)
@@ -164,7 +162,8 @@ class changedcname(commands.Cog):
                 if member:
                     await member.edit(nick=nick)
             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()