Skip to content

Commit 4858613

Browse files
authored
Fix chat pattern and event listener in tutorial (#3783)
1 parent c9f7665 commit 4858613

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,16 +576,16 @@ Here we're creating a bot that answer 'hello' from the other player.
576576
577577
```js
578578
bot.addChatPattern(
579-
/(helo|hello|Hello)/,
580579
'hello',
580+
/(helo|hello|Hello)/,
581581
'Someone says hello'
582582
)
583583

584584
const hi = () => {
585585
bot.chat('Hi!')
586586
}
587587

588-
bot.on('hello', hi)
588+
bot.on('chat:hello', hi)
589589
```
590590
591591
#### Custom chat

0 commit comments

Comments
 (0)