From c445bc6def35a9e01b4303ab6fac3a7d71c8f56f Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 6 Jul 2025 12:40:01 +0500 Subject: feat: command aliases --- bot/src/commands/lua.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bot/src/commands/lua.cpp') diff --git a/bot/src/commands/lua.cpp b/bot/src/commands/lua.cpp index 0c02bf5..460fe25 100644 --- a/bot/src/commands/lua.cpp +++ b/bot/src/commands/lua.cpp @@ -953,6 +953,14 @@ namespace bot::command::lua { } } + sol::table aliases = data["aliases"]; + for (auto &k : aliases) { + sol::object value = k.second; + if (value.is()) { + this->aliases.push_back(value.as()); + } + } + std::string rights_text = data["minimal_rights"]; if (rights_text == "suspended") { this->level = schemas::PermissionLevel::SUSPENDED; -- cgit v1.2.3