We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f7665 commit 4858613Copy full SHA for 4858613
1 file changed
docs/tutorial.md
@@ -576,16 +576,16 @@ Here we're creating a bot that answer 'hello' from the other player.
576
577
```js
578
bot.addChatPattern(
579
- /(helo|hello|Hello)/,
580
'hello',
+ /(helo|hello|Hello)/,
581
'Someone says hello'
582
)
583
584
const hi = () => {
585
bot.chat('Hi!')
586
}
587
588
-bot.on('hello', hi)
+bot.on('chat:hello', hi)
589
```
590
591
#### Custom chat
0 commit comments