summaryrefslogtreecommitdiff
path: root/bot/src/commands/lua.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-04-06 18:25:46 +0400
committerilotterytea <iltsu@alright.party>2025-04-06 18:25:46 +0400
commitd1f8efef4a68f81ca104e9b8f51e04497f3bd8aa (patch)
treece13d90a87fdbe25c8871ff1f39322681cd520b4 /bot/src/commands/lua.hpp
parent2a49844a95593ac98e919c18651320e62f276fa7 (diff)
feat: !ping in lua + bot and time libraries
Diffstat (limited to 'bot/src/commands/lua.hpp')
-rw-r--r--bot/src/commands/lua.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/bot/src/commands/lua.hpp b/bot/src/commands/lua.hpp
index 11e98d3..b858759 100644
--- a/bot/src/commands/lua.hpp
+++ b/bot/src/commands/lua.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <memory>
#include <sol/sol.hpp>
#include <sol/state.hpp>
#include <sol/table.hpp>
@@ -14,6 +15,11 @@
void print_lua_object_type(const sol::object &obj);
namespace bot::command::lua {
+ namespace library {
+ void add_bot_library(std::shared_ptr<sol::state> state);
+ void add_time_library(std::shared_ptr<sol::state> state);
+ }
+
class LuaCommand : public Command {
public:
LuaCommand(std::shared_ptr<sol::state> luaState,