isGoogleAction and isAlexaSkill Not Always Available

google-assistant
amazon-alexa

#1

Just figured out that isGoogleAction is only available if you use GoogleAssistant:

app.use(
    new GoogleAssistant(),
);

Similarly, isAlexaSkill is only available if:

app.use(
    new Alexa(),
);

I came across this while migrating from Jovo v1 to v2 and I forgot to add a use for GoogleAssistant.


#2

Since v2 the framework itself doesn’t know the platform. isAlexaSkill() is implemented by the jovo-platform-alexa and isGoogleAction by jovo-platform-googleassistant.