Added getChatCommand function. Fixes #601