Skip to content

Commit

Permalink
fix: use WechatyBuilder to instantiate the Wechaty instance
Browse files Browse the repository at this point in the history
  • Loading branch information
leotaozeng committed Mar 13, 2024
1 parent 87f96e9 commit c4a0d55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docusaurus/docs/getting-started/running-locally.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ import {
Contact,
Message,
ScanStatus,
Wechaty,
WechatyBuilder,
log,
}from 'wechaty'

Expand Down Expand Up @@ -364,7 +364,7 @@ async function onMessage (msg: Message) {
Now initializing the bot by providing a name.

```ts
const bot = new Wechaty({
const bot = WechatyBuilder.build({
name: 'ding-dong-bot',
})
```
Expand Down

0 comments on commit c4a0d55

Please sign in to comment.