Added simple command handler. Maybe not the best way, but it works. This will help a lot with keeping the code organized when people start adding their own commands. Also, fixed the regex /(\s+)/ that was adding a blank string for every real string it found.
Added simple command handler. Maybe not the best way, but it works. This will help a lot with keeping the code organized when people start adding their own commands. Also, fixed the regex
/(\s+)/
that was adding a blank string for every real string it found.