added banlist

This commit is contained in:
2025-08-15 00:25:49 +03:00
parent 54c9ccef80
commit 4c8f908f18
5 changed files with 20 additions and 6 deletions

View File

@@ -10,4 +10,8 @@ def get_mod_time(path: str, format: str="%a %b %e %H:%M:%S %Z %Y") -> str:
def get_create_time(path: str, format: str="%a %b %e %H:%M:%S %Z %Y") -> str:
create_time = os.path.getctime(path)
create_datetime = datetime.datetime.fromtimestamp(create_time)
return create_datetime.strftime(format)
return create_datetime.strftime(format)
def get_banlist() -> list:
return list(set(open("banlist.lol").readlines()))