migration vers new components V2, et ajout de diverse fonctions !
This commit is contained in:
parent
3590cb748f
commit
ba9e297cb8
14 changed files with 851 additions and 371 deletions
9
scratch/check_container.py
Normal file
9
scratch/check_container.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import disnake
|
||||
import disnake.ui
|
||||
|
||||
c = disnake.ui.Container()
|
||||
print(f"Container attributes: {dir(c)}")
|
||||
try:
|
||||
print(f"Children: {c.children}")
|
||||
except Exception as e:
|
||||
print(f"No children attribute: {e}")
|
||||
12
scratch/check_file.py
Normal file
12
scratch/check_file.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import os
|
||||
import json
|
||||
|
||||
member_id = 1141309757370675262
|
||||
path = f"data/member_logs/{member_id}.json"
|
||||
print(f"Path: {path}")
|
||||
print(f"Exists: {os.path.exists(path)}")
|
||||
if os.path.exists(path):
|
||||
print(f"Size: {os.path.getsize(path)}")
|
||||
with open(path, 'r') as f:
|
||||
content = f.read()
|
||||
print(f"Content: {repr(content)}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue