Ajout d'un système de suggestion via intégration gitlab + correction de /setgoodbye et DM arrivée
This commit is contained in:
parent
50a1936b89
commit
997b897b28
20 changed files with 43667 additions and 204 deletions
18
check_cols.py
Normal file
18
check_cols.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import sqlite3
|
||||
import os
|
||||
|
||||
db_path = "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/config.db"
|
||||
if os.path.exists(db_path):
|
||||
conn = sqlite3.connect(db_path)
|
||||
cursor = conn.cursor()
|
||||
try:
|
||||
cursor.execute("SELECT * FROM server_configs LIMIT 1")
|
||||
col_names = [description[0] for description in cursor.description]
|
||||
print(f"Columns: {col_names}")
|
||||
row = cursor.fetchone()
|
||||
print(f"Data: {row}")
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
conn.close()
|
||||
else:
|
||||
print("Database not found")
|
||||
Loading…
Add table
Add a link
Reference in a new issue