Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 4c23b49

Browse files
author
Ben Brown
authored
Merge pull request #679 from GautierT/patch-1
Change `changeTopic` to `gotoThread` in readme
2 parents 781c20f + 6e66fa6 commit 4c23b49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -738,19 +738,19 @@ bot.createConversation(message, function(err, convo) {
738738
{
739739
pattern: 'yes',
740740
callback: function(response, convo) {
741-
convo.changeTopic('yes_thread');
741+
convo.gotoThread('yes_thread');
742742
},
743743
},
744744
{
745745
pattern: 'no',
746746
callback: function(response, convo) {
747-
convo.changeTopic('no_thread');
747+
convo.gotoThread('no_thread');
748748
},
749749
},
750750
{
751751
default: true,
752752
callback: function(response, convo) {
753-
convo.changeTopic('bad_response');
753+
convo.gotoThread('bad_response');
754754
},
755755
}
756756
]);

0 commit comments

Comments
 (0)