CommandMessage: commandContent ("-cmd hello there" => "hello there")
owengombas opened this issue · comments
Owen Gombas commented
this is example of command
-cmd hello there
I know we can read the parameters by slug
cmd :text :text2
but I wish to read full text
hello there
I can replace -cmd
but is there any alternative solution?
By Harry
Owen Gombas commented
Vijay Meena (Samar) commented
there is a problem with commit, command.commandContent is only output without prefix only
current passed regex for command `-cmd hello there`` is
/^-/i
expected output
/^-([\w-]+)\s
orangix commented
message.content.split(' ').slice(1).join(' ')