|
|
@ -6,6 +6,7 @@ import os |
|
|
|
from bot_sys import config, log, aiogram_bot, bot_messages, bd_table, user_access |
|
|
|
from bot_sys import config, log, aiogram_bot, bot_messages, bd_table, user_access |
|
|
|
from bot_modules import mod_agregator, start, profile, backup, users_groups_agregator, access, projects, tasks, needs, comments |
|
|
|
from bot_modules import mod_agregator, start, profile, backup, users_groups_agregator, access, projects, tasks, needs, comments |
|
|
|
from bot_modules import languages, messages, buttons, users, groups, user_in_groups |
|
|
|
from bot_modules import languages, messages, buttons, users, groups, user_in_groups |
|
|
|
|
|
|
|
from bot_modules import orders |
|
|
|
|
|
|
|
|
|
|
|
log_start_message = 'Бот успешно запущен!' |
|
|
|
log_start_message = 'Бот успешно запущен!' |
|
|
|
|
|
|
|
|
|
|
@ -34,6 +35,7 @@ mod_buttons_name = buttons.module_name |
|
|
|
mod_users_name = users.module_name |
|
|
|
mod_users_name = users.module_name |
|
|
|
mod_groups_name = groups.module_name |
|
|
|
mod_groups_name = groups.module_name |
|
|
|
mod_user_in_groups_name = user_in_groups.module_name |
|
|
|
mod_user_in_groups_name = user_in_groups.module_name |
|
|
|
|
|
|
|
mod_orders_name = orders.module_name |
|
|
|
|
|
|
|
|
|
|
|
start_mod_list = [mod_start_name] |
|
|
|
start_mod_list = [mod_start_name] |
|
|
|
mod_access = access.ModuleAccess(start_mod_list, g_Bot, g_ModuleAgregator, g_BotMessages, g_BotButtons, g_Log) |
|
|
|
mod_access = access.ModuleAccess(start_mod_list, g_Bot, g_ModuleAgregator, g_BotMessages, g_BotButtons, g_Log) |
|
|
@ -87,6 +89,10 @@ child_mod_name_list = [mod_start_name] |
|
|
|
mod_buttons = buttons.ModuleButtons(mod_languages_name, None, child_mod_name_list, start_mod_list, g_Bot, g_ModuleAgregator, g_BotMessages, g_BotButtons, g_Log) |
|
|
|
mod_buttons = buttons.ModuleButtons(mod_languages_name, None, child_mod_name_list, start_mod_list, g_Bot, g_ModuleAgregator, g_BotMessages, g_BotButtons, g_Log) |
|
|
|
g_ModuleAgregator.AddModule(mod_buttons) |
|
|
|
g_ModuleAgregator.AddModule(mod_buttons) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
child_mod_name_list = [mod_start_name] |
|
|
|
|
|
|
|
mod_orders = orders.ModuleOrders(None, None, child_mod_name_list, start_mod_list, g_Bot, g_ModuleAgregator, g_BotMessages, g_BotButtons, g_Log) |
|
|
|
|
|
|
|
g_ModuleAgregator.AddModule(mod_orders) |
|
|
|
|
|
|
|
|
|
|
|
child_mod_name_list = [ |
|
|
|
child_mod_name_list = [ |
|
|
|
mod_profile.GetName(), |
|
|
|
mod_profile.GetName(), |
|
|
|
mod_backup.GetName(), |
|
|
|
mod_backup.GetName(), |
|
|
@ -94,6 +100,7 @@ child_mod_name_list = [ |
|
|
|
mod_access.GetName(), |
|
|
|
mod_access.GetName(), |
|
|
|
mod_project.GetName(), |
|
|
|
mod_project.GetName(), |
|
|
|
mod_languages.GetName(), |
|
|
|
mod_languages.GetName(), |
|
|
|
|
|
|
|
mod_orders.GetName(), |
|
|
|
] |
|
|
|
] |
|
|
|
mod_start = start.ModuleStart(child_mod_name_list, g_Bot, g_ModuleAgregator, g_BotMessages, g_BotButtons, g_Log) |
|
|
|
mod_start = start.ModuleStart(child_mod_name_list, g_Bot, g_ModuleAgregator, g_BotMessages, g_BotButtons, g_Log) |
|
|
|
g_ModuleAgregator.AddModule(mod_start) |
|
|
|
g_ModuleAgregator.AddModule(mod_start) |
|
|
|