Closed 2Cubed closed 7 years ago
I thought they could return them already? I had some magic commands that did that, but, you changed them all to strings
@Innectic They can return them. (I changed most back to raw strings, though, because MessagePacket(raw_str)
all over the place is messy - only necessary for, say, action=True
, target="user"
, etc.) They don't receive them, though.
For example, in the !cube
command, we need to be able to detect which arguments are emojis. Currently, we're using Beam-specific parsing, which is labeled as a # HACK
- if we use the already-typed MessagePacket
s, though, we could easily just use if chunk["type"] == "emoji"
.
We could potentially use another special kwarg-only argument, raw
, to contain the raw MessagePacket
.
Currently, magic commands are based entirely around raw strings, which defeats the purpose of the typed
MessagePackets
in some sense. Magic commands should be able to useMessagePackets
for added functionalities. (Emoji detection, tag usage, etc.)