Skip to content

Instantly share code, notes, and snippets.

@netomarin
Created October 11, 2018 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netomarin/7a06874a92d4e77e8de866e140a5f018 to your computer and use it in GitHub Desktop.
Save netomarin/7a06874a92d4e77e8de866e140a5f018 to your computer and use it in GitHub Desktop.
Daily update entity setup
app.intent('setup_price_update', (conv, {cryptocurrency}) => {
const intent = conv.arguments.get('UPDATE_INTENT');
conv.ask(new RegisterUpdate({
intent: intent,
arguments: [
{
name: 'cryptocurrency',
textValue: cryptocurrency,
},
],
frequency: 'DAILY',
}));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment