Is it possible to make something that will turn an attempted command into the real command?
Ex: I type "pign" instead of "ping", is it possible for it to determine that it is the "Ping" command?
What you seem to be looking for is a "Did You Mean?" feature, which would handle simple typos and aliases in strings. There are many libraries that can help with various levels of complexity and features ranging from simple arrays of aliases up to bayesian matching, but here's one that seems to do a decent basic job: https://www.npmjs.com/package/didyoumean