Added MOTD reply type
Refactored events and event handling
Fixed erroneous argument shadowing
Implemented static MOTD message
Fixed typo in error message