Update chat-commands.js

Fixed redirect issue