lib/storeRedis.js
function( roomID, key ) {

		if( roomData[ roomID ] === undefined ) {

			return promise.reject( 'There is no room by that id' );
		} else {

			return promise.resolve( roomData[ roomID ][ key ] );
		}
	}
function( roomID, key ) {

		if( roomData[ roomID ] === undefined ) {

			return promise.reject( 'There is no room by that id' );
		} else {

			return promise.resolve( roomData[ roomID ][ key ] );
		}
	}
function ( roomID , key ) { if ( roomData [ roomID ] === undefined ) { return promise . reject ( 'There is no room by that id' ) ; } else { return promise . resolve ( roomData [ roomID ] [ key ] ) ; } }
get a variable from the rooms data object

@param {String} roomID id for the room
@param {String} key variable name/key that you want to get
@return {Promise} once this promise succeeds it will return the variable value it will fail if the variable does not exist
get a variable from the rooms data object