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

добавлены модули config, role, исправлена бд

This commit is contained in:
ilyazheprog
2023-12-07 18:02:04 +07:00
parent bc5de691a7
commit 88db66c360
15 changed files with 201 additions and 45 deletions

View File

@@ -1,4 +0,0 @@
import yaml
with open('config.yaml', 'r') as file:
yaml_load = yaml.full_load(file)

View File

@@ -1,2 +1,7 @@
TELEGRAM:
TOKEN: xxxxxxxxxxxxxxxxxxxx
TOKEN: xxxxxxxxxxxxxxxxxxxx
ROLES:
ADMIN: 0
MODERATOR: 1
USER: 2
BOT: 3

View File

@@ -1,4 +1,4 @@
from .config import yaml_load
from src.modules.standart.config.config import yaml_load
from asyncio import run
from aiogram import Bot, Dispatcher