0.7.1 Теперь у него есть логирование информации о боте в консоль и файл
This commit is contained in:
@@ -22,6 +22,12 @@ class TypeDirectory:
|
||||
voice : str = "Voice"
|
||||
media_directories : List[str] = [avatar, photo, video, videonote, gif, files, voice]
|
||||
|
||||
# Названия директорий для аватарок
|
||||
user_avatar : str = "Users"
|
||||
chat_avatar : str = "Chats"
|
||||
channel_avatar : str = "Channel"
|
||||
avatar_directories : List[str] = [user_avatar, chat_avatar, channel_avatar]
|
||||
|
||||
|
||||
# Класс создания директорий проекта
|
||||
class ProjectPath:
|
||||
@@ -29,12 +35,15 @@ class ProjectPath:
|
||||
Класс для хранения путей к проектам и логам.
|
||||
"""
|
||||
BotLogs : str = "BotLogs"
|
||||
bot_info_log_file: str = f"{BotLogs}/bot_info.log"
|
||||
start_log_file: str = f"{BotLogs}/start.log"
|
||||
debug_log_file: str = f"{BotLogs}/debug.log"
|
||||
info_log_file : str = f"{BotLogs}/info.log"
|
||||
warning_log_file: str = f"{BotLogs}/warning.log"
|
||||
error_log_file: str = f"{BotLogs}/error.log"
|
||||
logs_path : List[str] = [debug_log_file, info_log_file, warning_log_file, error_log_file]
|
||||
|
||||
BotFiles : str = "BotFiles"
|
||||
received_media : str = f"{BotFiles}/media"
|
||||
received_avatars : str = f"{BotFiles}/avatars"
|
||||
|
||||
personal_media : str = "ProjectsFiles/media"
|
||||
|
||||
Reference in New Issue
Block a user