Skip to content

Commit

Permalink
hard code for puppet memory name as puppet (#1516)
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Jul 31, 2018
1 parent fbd4584 commit 95e2ab9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wechaty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ export class Wechaty extends Accessory implements Sayable {
}

const puppet = this.options.puppet || config.systemPuppetName()
const puppetMemory = this.memory.sub(puppet.toString())
const puppetMemory = this.memory.sub('puppet')

const puppetInstance = await PuppetManager.resolve({
puppet,
Expand Down Expand Up @@ -952,6 +952,7 @@ export class Wechaty extends Accessory implements Sayable {
public async say (file: FileBox) : Promise<void>

public async say (...args: never[]): Promise<never>

/**
* Send message to userSelf, in other words, bot send message to itself.
* > Tips:
Expand Down

0 comments on commit 95e2ab9

Please sign in to comment.