{"action":"created","issue":{"url":"https://api.github.com/repos/aichaos/rivescript-js/issues/156","repository_url":"https://api.github.com/repos/aichaos/rivescript-js","labels_url":"https://api.github.com/repos/aichaos/rivescript-js/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/aichaos/rivescript-js/issues/156/comments","events_url":"https://api.github.com/repos/aichaos/rivescript-js/issues/156/events","html_url":"https://github.com/aichaos/rivescript-js/issues/156","id":172545382,"number":156,"title":"Is it safe to call `rs.loadDirectory()` multiple times on the same instance?","user":{"login":"julien-c","id":326577,"avatar_url":"https://avatars.githubusercontent.com/u/326577?v=3","gravatar_id":"","url":"https://api.github.com/users/julien-c","html_url":"https://github.com/julien-c","followers_url":"https://api.github.com/users/julien-c/followers","following_url":"https://api.github.com/users/julien-c/following{/other_user}","gists_url":"https://api.github.com/users/julien-c/gists{/gist_id}","starred_url":"https://api.github.com/users/julien-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien-c/subscriptions","organizations_url":"https://api.github.com/users/julien-c/orgs","repos_url":"https://api.github.com/users/julien-c/repos","events_url":"https://api.github.com/users/julien-c/events{/privacy}","received_events_url":"https://api.github.com/users/julien-c/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-22T20:22:11Z","updated_at":"2016-08-22T21:17:47Z","closed_at":null,"body":"Hi,\r\n\r\nwhat'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?\r\n\r\nIs there a better way?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/aichaos/rivescript-js/issues/comments/241553618","html_url":"https://github.com/aichaos/rivescript-js/issues/156#issuecomment-241553618","issue_url":"https://api.github.com/repos/aichaos/rivescript-js/issues/156","id":241553618,"user":{"login":"kirsle","id":1663507,"avatar_url":"https://avatars.githubusercontent.com/u/1663507?v=3","gravatar_id":"","url":"https://api.github.com/users/kirsle","html_url":"https://github.com/kirsle","followers_url":"https://api.github.com/users/kirsle/followers","following_url":"https://api.github.com/users/kirsle/following{/other_user}","gists_url":"https://api.github.com/users/kirsle/gists{/gist_id}","starred_url":"https://api.github.com/users/kirsle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirsle/subscriptions","organizations_url":"https://api.github.com/users/kirsle/orgs","repos_url":"https://api.github.com/users/kirsle/repos","events_url":"https://api.github.com/users/kirsle/events{/privacy}","received_events_url":"https://api.github.com/users/kirsle/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T21:17:47Z","updated_at":"2016-08-22T21:17:47Z","body":"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."}}
{"actor":{"display_login":"kirsle"}}