Skip to content

Commit

Permalink
Update docusaurus/docs/getting-started/running-locally.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
Leo Zeng and coderabbitai[bot] authored Mar 13, 2024
1 parent c4a0d55 commit f3d5826
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docusaurus/docs/getting-started/running-locally.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ Now initializing the bot by providing a name.

```ts
const bot = WechatyBuilder.build({
bot.start()
.then(() => log.info('StarterBot', 'Starter Bot Started.'))
.catch(e => log.error('StarterBot', 'Failed to start the bot:', e))
name: 'ding-dong-bot',
})
```
Expand Down

0 comments on commit f3d5826

Please sign in to comment.