smooch

Smooch: How to do postback dependent state transition?

前提是你 提交于 2019-12-20 02:35:19
问题 I am trying to transition the script from one state to another based on Smooch postback payloads; but getting error code H12. Consider the example https://github.com/smooch/smooch-bot-example Say I modify the script https://github.com/smooch/smooch-bot-example/blob/master/script.js as follows start: { receive: (bot) => { return bot.say('Hi! I\'m Smooch Bot! Continue? %[Yes](postback:askName) %[No](postback:bye) ); } }, bye: { prompt: (bot) => bot.say('Pleasure meeting you'), receive: () =>

pass param to postback method in smooch-bot

允我心安 提交于 2019-12-11 13:26:49
问题 I am following the answer of @dstoiko from here I am calling the API in ADD_MOVIE block and want to pass some value to my postback with payload ADD_TO_FIREBASE here is my blocks 'use strict'; const Script = require('smooch-bot').Script; var YtsHelper = require('./libs/YtsHelper.js'); const FirebaseHelper = require('./libs/FirebaseHelper.js'); var firebaseHelperObj = new FirebaseHelper(); module.exports = new Script({ processing: { prompt: (bot) => bot.say('Beep boop...'), receive: () =>

Issue with adding my FileProvider

a 夏天 提交于 2019-12-08 02:02:47
问题 If I try to add my FileProvider like this: <provider android:name="android.support.v4.content.FileProvider" android:authorities="${applicationId}.myfileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" /> </provider> I got the following issue: Caused by: java.lang.RuntimeException: Manifest merger failed with multiple errors, see logs at com.android.builder.core