Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
authenticate() {
this.assistant = new GoogleAssistant(Configuration.auth);
this.assistant.on('ready', () => {
console.log('[Assistant SDK]', 'Ready...');
this.emit('ready');
});
this.assistant.on('error', (error) => {
console.log('[Assistant SDK]', error);
});
this.assistant.on('started', this.startConversation);
}
}