2024-09-06 10:42:25 +00:00
|
|
|
import time
|
|
|
|
from os import remove
|
|
|
|
|
2024-08-20 16:56:43 +00:00
|
|
|
import file_manager
|
2024-07-09 17:40:18 +00:00
|
|
|
import firebase_manager
|
|
|
|
|
|
|
|
|
2024-07-10 17:33:54 +00:00
|
|
|
def ban_user(user_id: str):
|
|
|
|
try:
|
|
|
|
firebase_manager.auth.update_user(user_id, disabled=False)
|
2024-08-15 08:49:41 +00:00
|
|
|
print("Banned : " + user_id)
|
2024-07-10 17:33:54 +00:00
|
|
|
except Exception as e:
|
2024-08-15 08:49:41 +00:00
|
|
|
print("Error banning user " + user_id, "|", str(e), type(e).__name__)
|
2024-08-11 09:02:10 +00:00
|
|
|
|
|
|
|
|
2024-07-09 17:40:18 +00:00
|
|
|
if __name__ == '__main__':
|
2024-08-20 16:56:43 +00:00
|
|
|
#ban_user("MpkbDMOO8PQddQgB5VgBQdTMWF53")
|
2024-08-24 11:38:22 +00:00
|
|
|
#file_manager.log_action("gqZN3eCHF3V2er3Py3rlgk8u2t83", "test", "DeleteServer")
|
|
|
|
#firebase_manager.set_servers_not_running()
|
2024-09-06 10:42:25 +00:00
|
|
|
test: list[int] = [0, 987]
|
|
|
|
test.remove(85)
|
|
|
|
print(test)
|
2024-08-24 11:38:22 +00:00
|
|
|
pass
|