From 2a6efa35f2720415a535765efdc2cd76f22ccd30 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 15 Apr 2025 04:34:23 +0500 Subject: feat: channel.prefix placeholder --- bot/src/commands/lua.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bot/src/commands') diff --git a/bot/src/commands/lua.cpp b/bot/src/commands/lua.cpp index e8ac0c2..2665b68 100644 --- a/bot/src/commands/lua.cpp +++ b/bot/src/commands/lua.cpp @@ -332,7 +332,8 @@ namespace bot::command::lua { std::map token_map = { {"{sender.alias_name}", request["sender"]["alias_name"]}, {"{source.alias_name}", request["channel"]["alias_name"]}, - {"{default.prefix}", DEFAULT_PREFIX}}; + {"{default.prefix}", DEFAULT_PREFIX}, + {"{channel.prefix}", request["channel_preference"]["prefix"]}}; for (const auto &pair : token_map) { int pos = line.find(pair.first); -- cgit v1.2.3