MMM-Fuel.js
/**
     * @function notificationReceived
     * @description Handles incoming broadcasts from other modules or the MagicMirror core.
     * @override
     *
     * @param {string} notification - Notification name
     * @param {*} payload - Detailed payload of the notification.
     * @param {MM} [sender] - The sender of the notification. If sender is undefined the sender is the core.
     */
@function notificationReceived
@description Handles incoming broadcasts from other modules or the MagicMirror core.
@override

@param {string} notification - Notification name
@param {*} payload - Detailed payload of the notification.
@param {MM} [sender] - The sender of the notification. If sender is undefined the sender is the core.
@function notificationReceived @description Handles incoming broadcasts from other modules or the MagicMirror core . @override @param { string } notification - Notification name @param { * } payload - Detailed payload of the notification . @param { MM } [ sender ] - The sender of the notification . If sender is undefined the sender is the core .
notificationReceived(notification, payload, sender) {
        if (notification === 'ALL_MODULES_STARTED') {
            this.sendNotification('REGISTER_VOICE_MODULE', this.voice);
        } else if (notification === 'VOICE_FUEL' && sender.name === 'MMM-voice') {
            this.checkCommands(payload);
        } else if (notification === 'VOICE_MODE_CHANGED' && sender.name === 'MMM-voice' && payload.old === this.voice.mode) {
            this.help = false;
            this.map = false;
            this.updateDom(300);
        }
    }
notificationReceived ( notification , payload , sender ) { if ( notification === 'ALL_MODULES_STARTED' ) { this . sendNotification ( 'REGISTER_VOICE_MODULE' , this . voice ) ; } else if ( notification === 'VOICE_FUEL' && sender . name === 'MMM-voice' ) { this . checkCommands ( payload ) ; } else if ( notification === 'VOICE_MODE_CHANGED' && sender . name === 'MMM-voice' && payload . old === this . voice . mode ) { this . help = false ; this . map = false ; this . updateDom ( 300 ) ; } }
@function notificationReceived
 @description Handles incoming broadcasts from other modules or the MagicMirror core.
@function notificationReceived @description Handles incoming broadcasts from other modules or the MagicMirror core .