summaryrefslogtreecommitdiff
path: root/luamods/cmd.lua
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-12-05 00:31:28 +0500
committerilotterytea <iltsu@alright.party>2025-12-05 00:31:28 +0500
commita2052f0362d66493d05aec9cbdd151bfc1011a5f (patch)
tree4ebe89473dbb27c81c2d5113d5997b02ab585b03 /luamods/cmd.lua
parent08edfbc1fd81d86f492f2f9438a136c139f932ca (diff)
feat: dynamic prefixes in custom commands
Diffstat (limited to 'luamods/cmd.lua')
-rw-r--r--luamods/cmd.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/luamods/cmd.lua b/luamods/cmd.lua
index a7676ce..514ec8b 100644
--- a/luamods/cmd.lua
+++ b/luamods/cmd.lua
@@ -62,6 +62,7 @@ The `!cmd` command gives the ability to create their own chat commands.
+ `[name]` - The name for new custom command. It should be unique for your chat.
**A prefix must be specified if you want a prefixed command, e.g. `!sub`, `!server`.**
+You can use `{prefix}` *(dynamic prefix)*, for example `{prefix}sub, {prefix}server`. It will be replaced with the current prefix in the chat.
+ `[message]` - Text that will be sent when the custom command is invoked.
### Delete the custom command