You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
what's the best way to "refresh" a bot's brain when e.g. updating the files: should I just create a new RiveScript() and loadDirectory() each time, or is it safe to call loadDirectory over and over again with the same argument?
Is there a better way?
Thanks!
The text was updated successfully, but these errors were encountered:
Yeah, create a new RiveScript to reload the brain. A long time ago it used to be enough to just loadDirectory() again and data for new triggers would replace those for the existing triggers, but now the triggers are appended to a list and duplicates are technically allowed which doesn't work out so well when you just wanted to reload the bot.
Hi,
what's the best way to "refresh" a bot's brain when e.g. updating the files: should I just create a
new RiveScript()
andloadDirectory()
each time, or is it safe to callloadDirectory
over and over again with the same argument?Is there a better way?
Thanks!
The text was updated successfully, but these errors were encountered: