cronokirby/alchemy

Parsing command parameter that contain space

Closed this issue · 1 comments

I need to parse a bot command with a parameter that contain space

a pattern of discord message I tried

!command "The Parameter"

what I got from Cogs

Cogs.def command(arg) do
  # arg = "The
end

is it possible to capture all the string in quote to be a single parameter
or if there is other way to capture the space? (maybe The\ String or something)

ok, after reading more api references, I see that there is the Cogs.set_parser to handle that