You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 28, 2022. It is now read-only.
parse_message should maybe use the "match" functionality? You can make it a lot more declarative. If we split the string upto the first space can simplify a lot of the code from what I've seen. Maybe a dict mapped to a function that takes the rest of the string? Closures might be overkill...
The closure is for sending response messages. I just pushed 4568425 that does this. It opens up the return type for parse_message which otherwise would have been an almost-too-complex enum containing some like
The code as it stands is not the best. Current issues:
Code duplication when sending messagesOther suggestions:
The text was updated successfully, but these errors were encountered: