Refactored in a way modules have access to bot infrastructure
This commit is contained in:
parent
c605b3ba93
commit
89c04254b8
25 changed files with 245 additions and 216 deletions
20
component/core.h
Normal file
20
component/core.h
Normal 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;
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue