0
0
mirror of https://gitflic.ru/project/maks1ms/ocab.git synced 2025-10-11 06:22:37 +03:00

добавлена проверка зависимостей

This commit is contained in:
2024-07-10 12:36:56 +03:00
parent 89fe6a3520
commit 3b849417c3
12 changed files with 71 additions and 28 deletions

View File

@@ -3,7 +3,7 @@
"name": "Config YAML",
"description": "Модуль для работы с конфигурационным файлом бота (YAML)",
"author": "OCAB Team",
"version": "1.0",
"version": "1.0.0",
"privileged": true,
"dependencies": {}
}

View File

@@ -3,7 +3,7 @@
"name": "Database",
"description": "Модуль для работы с БД",
"author": "OCAB Team",
"version": "1.0",
"version": "1.0.0",
"privileged": true,
"dependencies": {}
}

View File

@@ -1,24 +1,18 @@
# flake8: noqa
from typing import Any, Type
from typing import Type
from aiogram import Bot
from aiogram.types import Message
from ocab_core.logger import log
from ocab_core.modules_system.public_api import get_module
from ocab_core.modules_system.public_api import get_module, log
from .interfaces import IDbApi, IRoles
# from src.modules.standard.database import db_api
db_api: Type[IDbApi] = get_module(
"standard.database",
"db_api",
)
# db_api.init_db_connection()
Roles: Type[IRoles] = get_module("standard.roles", "Roles")

View File

@@ -3,9 +3,10 @@
"name": "Info",
"description": "Модуль с информацией",
"author": "OCAB Team",
"version": "1.0",
"version": "1.0.0",
"privileged": false,
"dependencies": {
"standard.roles": "^1.0.0"
"standard.roles": "^1.0.0",
"standard.database": "^1.0.0"
}
}

View File

@@ -3,7 +3,7 @@
"name": "Roles",
"description": "Модуль для работы с ролями",
"author": "OCAB Team",
"version": "1.0",
"version": "1.0.0",
"privileged": true,
"dependencies": {
"standard.config": "^1.0.0",