Init commit
This commit is contained in:
commit
d6e00c56e7
49 changed files with 2324 additions and 0 deletions
10
Mousey/Misc/__init__.py
Normal file
10
Mousey/Misc/__init__.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
__all__ = [
|
||||
"stickers_id",
|
||||
"UserRole", "NewsStatus",
|
||||
"LOG_DIR", "LOCALE_DIR", "BOT_SETTINGS_DIR", "CONFIG_FILE_PATH"
|
||||
]
|
||||
|
||||
from .stickers_id import stickers_id
|
||||
from .enums import UserRole, NewsStatus
|
||||
from .paths import LOG_DIR, LOCALE_DIR, BOT_SETTINGS_DIR, CONFIG_FILE_PATH
|
||||
|
||||
21
Mousey/Misc/enums.py
Normal file
21
Mousey/Misc/enums.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
from enum import Enum
|
||||
|
||||
|
||||
class NewsStatus(Enum):
|
||||
"""
|
||||
Статус новости в базе данных.
|
||||
"""
|
||||
|
||||
UNSEEN: str = "uns"
|
||||
FAVORITE: str = "fav"
|
||||
|
||||
|
||||
class UserRole(Enum):
|
||||
"""
|
||||
Роли для пользователя в базе данных.
|
||||
"""
|
||||
|
||||
USER: str = "user"
|
||||
MAIN_ADMIN: str = "main"
|
||||
ADMIN: str = "admin"
|
||||
BANNED: str = "banned"
|
||||
13
Mousey/Misc/paths.py
Normal file
13
Mousey/Misc/paths.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
"""
|
||||
Все важные пути,
|
||||
необходимые для нормального функционирования проекта.
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
_WORKDIR = Path(__file__).parent.parent.parent
|
||||
|
||||
LOG_DIR = _WORKDIR / "Logs"
|
||||
LOCALE_DIR = _WORKDIR / "Mousey/Locales"
|
||||
BOT_SETTINGS_DIR = _WORKDIR / "Mousey/Bot/"
|
||||
CONFIG_FILE_PATH = _WORKDIR / ".env"
|
||||
8
Mousey/Misc/stickers_id.py
Normal file
8
Mousey/Misc/stickers_id.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# ID стикеров для бота
|
||||
stickers_id = [
|
||||
"CAACAgIAAxkBAAIDV2cfRLfpR83Jlk4ZLKjD5qfs3Px5AAJRUwACGivhSmV-VHVlnwvtNgQ",
|
||||
"CAACAgIAAxkBAAIDVWcfRLF6pnGQ0Q8mX1qYWH2VneEmAALNSgACBTbgSurrQZ6bl80zNgQ",
|
||||
"CAACAgIAAxkBAAIDUWcfRJ3JSpHd9okTkGqtK4f3jqZ6AAIdXwACiHTZSvcjS7IGRKtzNgQ",
|
||||
"CAACAgIAAxkBAAIDXWcfRMKawdnKG_ucxKq_hLmApGDSAAIQTgACyX_gSh-1WOOiZk3YNgQ",
|
||||
"CAACAgIAAxkBAAIDX2cfRMfltkyPsFSnb6ChYTHesbG5AAL2UgACwjrgSnk0mRVZy8MuNgQ",
|
||||
]
|
||||
Reference in a new issue