Open lisawilliams opened 6 years ago
Was able to get hello-world
working in Rivescript.
Note: the Botpress server, which we start by running bp start
at the
command line, must be shut down (Ctrl+C
) and restarted (bp start
)
at the command line in the root of the bot directory before our bot will
pick up any changes to its responses and behavior.
Sadly, adding this breaks our Quick Responses (see Issue #4).
We may have to rebuild these in Rivescript, and in fact we may have to choose 100% UMM markup or Rivescript.
Responds to Issue #12.
Ran git push heroku master
. I closed down the localhost botpress server and ngrok
to be absolutely certain that Facebook was talking to our Heroku instance, and not ngrok
locally.
However, the changes to the bot's script in content.yml
did not appear to take -- it responded "Hello human" rather than "Hello, you have just successfully done "Hello World!" 🎉 even though that line was the response to hello
in content.yml.
I was able to fix this by logging into the herokuapp.com instance of botpress for the Trollbusters bot and visiting modules/botpress-rivescript and modifying the script there.
However, running heroku restart
wipes all the changes to this file (or does it? I am on a super-slow internet connection and it's possible that the save
button is not completing the action when I take it.
Left a note here in the #rivepress channel: https://botmakers.slack.com/archives/C16TE8YMA/p1506101416000138
OK. Got home to better internet connection. It's not the connection that's causing the problem where the .rive file that gives the bot's responses gets reset to the default every time heroku restart
is run.
Also left a message here in the botpress-community
Slack: https://botpress-community.slack.com/archives/C3TQB8FBM/p1506117176000087
See this tutorial: https://github.com/botpress/botpress-examples/tree/master/hello-world-rivescript-bot
Rivescript already installed (see Issue #10 ) for details.