Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
7f19616
1
Parent(s):
596c791
minor changes
Browse files- Powers/plugins/clean_db.py +8 -5
- Powers/plugins/dev.py +1 -1
Powers/plugins/clean_db.py
CHANGED
@@ -69,12 +69,15 @@ async def clean_my_db(c:Gojo,is_cmd=False, id=None):
|
|
69 |
except Exception:
|
70 |
to_clean.append(i)
|
71 |
Users(i).delete_user()
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
|
|
|
|
77 |
pass
|
|
|
78 |
txt += f"\nTotal users removed: {len(to_clean)}"
|
79 |
to_clean.clear()
|
80 |
if is_cmd:
|
|
|
69 |
except Exception:
|
70 |
to_clean.append(i)
|
71 |
Users(i).delete_user()
|
72 |
+
try:
|
73 |
+
if infos.is_deleted:
|
74 |
+
to_clean.append(infos.id)
|
75 |
+
Users(infos.id).delete_user()
|
76 |
+
else:
|
77 |
+
pass
|
78 |
+
except Exception:
|
79 |
pass
|
80 |
+
|
81 |
txt += f"\nTotal users removed: {len(to_clean)}"
|
82 |
to_clean.clear()
|
83 |
if is_cmd:
|
Powers/plugins/dev.py
CHANGED
@@ -465,7 +465,7 @@ async def cleeeen(c:Gojo,m:Message):
|
|
465 |
await x.delete()
|
466 |
except Exception:
|
467 |
pass
|
468 |
-
await m.reply_text(
|
469 |
return
|
470 |
except Exception as e:
|
471 |
await m.reply_text(e)
|
|
|
465 |
await x.delete()
|
466 |
except Exception:
|
467 |
pass
|
468 |
+
await m.reply_text(z)
|
469 |
return
|
470 |
except Exception as e:
|
471 |
await m.reply_text(e)
|