diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-08 01:07:11 +0400 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-08 01:07:11 +0400 |
| commit | 112136c184bcb226fa84e9b5a39c2d1dc557c4d3 (patch) | |
| tree | 0b9ebc6a090b3cad75ac6d5426f3beda173fab24 /bot/src/commands/command.hpp | |
| parent | fbf41a4c737174442717ade79e895321ee8ada36 (diff) | |
feat: a method for loading a single lua file
Diffstat (limited to 'bot/src/commands/command.hpp')
| -rw-r--r-- | bot/src/commands/command.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/src/commands/command.hpp b/bot/src/commands/command.hpp index fcaacdb..507504c 100644 --- a/bot/src/commands/command.hpp +++ b/bot/src/commands/command.hpp @@ -44,6 +44,7 @@ namespace bot { void add_command(std::unique_ptr<Command> cmd); void load_lua_directory(const std::string &folder_path); + void load_lua_file(const std::string &file_path); std::optional<Response> run(const InstanceBundle &bundle, const Request &msg); |
