diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-10 23:37:38 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-10 23:37:38 +0500 |
| commit | ead8d4e14f939eca0be580199de56a3d6039e446 (patch) | |
| tree | baaf4c549213bf07d62d3761073d6cb51e397a60 /bot/src/config.cpp | |
| parent | 97189d3f0947294fe3e8f20b559a3634c5ae0ccd (diff) | |
feat: !chatters in lua
Diffstat (limited to 'bot/src/config.cpp')
| -rw-r--r-- | bot/src/config.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bot/src/config.cpp b/bot/src/config.cpp index 714ff56..cfd900f 100644 --- a/bot/src/config.cpp +++ b/bot/src/config.cpp @@ -25,6 +25,13 @@ namespace bot { } else { cmds["rpost_path"] = sol::nil; } + if (this->commands.paste_path.has_value()) { + cmds["paste_path"] = this->commands.paste_path.value(); + } else { + cmds["paste_path"] = sol::nil; + } + cmds["paste_body_name"] = this->commands.paste_body_name; + cmds["paste_title_name"] = this->commands.paste_title_name; o["commands"] = cmds; // --- OWNER @@ -115,6 +122,12 @@ namespace bot { cmd_cfg.join_allow_from_other_chats = std::stoi(value); } else if (key == "commands.randompost.path") { cmd_cfg.rpost_path = value; + } else if (key == "commands.paste_path") { + cmd_cfg.paste_path = value; + } else if (key == "paste_body_name") { + cmd_cfg.paste_body_name = value; + } else if (key == "paste_title_name") { + cmd_cfg.paste_title_name = value; } else if (key == "owner.name") { |
