From 9cef4c8743e91a0078efa26dd0b3f5ba93e9410f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Huan=20=28=E6=9D=8E=E5=8D=93=E6=A1=93=29?= Date: Thu, 18 Jun 2020 10:30:09 +0800 Subject: [PATCH] use environment setting for puppet --- examples/ding-dong-bot.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/ding-dong-bot.ts b/examples/ding-dong-bot.ts index ddc6a55..b5ea33b 100644 --- a/examples/ding-dong-bot.ts +++ b/examples/ding-dong-bot.ts @@ -51,7 +51,7 @@ async function onMessage (msg: Message) { const bot = new Wechaty({ name: 'ding-dong-bot', /** - * Specify a puppet for a specific protocol (Web/Pad/Mac/Windows, etc). + * Specify a `puppet` for a specific protocol (Web/Pad/Mac/Windows, etc). * * You can use the following providers: * - wechaty-puppet-hostie @@ -63,7 +63,9 @@ const bot = new Wechaty({ * Learn more about Wechaty Puppet Providers at: * https://github.com/wechaty/wechaty-puppet/wiki/Directory */ - puppet: 'wechaty-puppet-puppeteer', + + // puppet: 'wechaty-puppet-puppeteer', + }) bot.on('scan', onScan)