Refactored in a way modules have access to bot infrastructure

This commit is contained in:
Blue 2025-03-09 21:01:41 +02:00
parent c605b3ba93
commit 89c04254b8
Signed by: blue
GPG key ID: 9B203B252A63EE38
25 changed files with 245 additions and 216 deletions

20
component/core.h Normal file
View file

@ -0,0 +1,20 @@
// SPDX-FileCopyrightText: 2024 Yury Gubich <blue@macaw.me>
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <string>
#include "config.h"
#include "router.h"
#include "logger.h"
class Core {
public:
Core(const std::string& configPath);
Config config;
Router router;
Logger logger;
};