Fixing BotOperation to allow for testability for formatMessage