added banlist
This commit is contained in:
6
utils.py
6
utils.py
@@ -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()))
|
Reference in New Issue
Block a user