summaryrefslogtreecommitdiff
path: root/bot/src/main.cpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-04-06 17:28:47 +0400
committerilotterytea <iltsu@alright.party>2025-04-06 17:28:47 +0400
commit2a49844a95593ac98e919c18651320e62f276fa7 (patch)
tree01b7e2ebb1dc7a9ac92e7c3105edfd098271f29a /bot/src/main.cpp
parenta1a36cf4d4999b5ce89dce95364c9fd839b54b5d (diff)
feat: implementing lua coding
Diffstat (limited to 'bot/src/main.cpp')
-rw-r--r--bot/src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/bot/src/main.cpp b/bot/src/main.cpp
index a95e4a8..212d190 100644
--- a/bot/src/main.cpp
+++ b/bot/src/main.cpp
@@ -1,5 +1,7 @@
+#include <memory>
#include <optional>
#include <pqxx/pqxx>
+#include <sol/state.hpp>
#include <string>
#include <thread>
#include <vector>
@@ -7,6 +9,8 @@
#include "api/twitch/helix_client.hpp"
#include "bundle.hpp"
#include "commands/command.hpp"
+#include "commands/lua.hpp"
+#include "commands/response.hpp"
#include "config.hpp"
#include "github.hpp"
#include "handlers.hpp"
@@ -49,6 +53,8 @@ int main(int argc, char *argv[]) {
bot::irc::Client client(cfg.twitch_credentials.client_id,
cfg.twitch_credentials.token);
bot::command::CommandLoader command_loader;
+ command_loader.load_lua_directory("luamods");
+
bot::loc::Localization localization("localization");
bot::api::twitch::HelixClient helix_client(cfg.twitch_credentials.token,
cfg.twitch_credentials.client_id);