Created
July 10, 2017 08:08
-
-
Save jazzedge/453e160fbf5d44d2124e68100bb5bbbd to your computer and use it in GitHub Desktop.
Bot Clear UserData specific to the questions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function clearData(session) { | |
var name = session.userData.myName; | |
var email = session.userData.myEmail; | |
session.userData = {}; | |
session.userData.myName = name; | |
session.userData.myEmail = email; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment