Mode before console

This commit makes sure that we set the server mode before we install the console listener, which sends messages to the staff channel based on the current server mode.