wechaty / getting-started

A Starter Project Template for Wechaty works out-of-the-box
https://gitpod.io/#https://github.com/wechaty/wechaty-getting-started
Apache License 2.0
808 stars 352 forks source link

[feature-request] ding-dong.js sample javascript program please! #268

Closed suntong closed 2 years ago

suntong commented 2 years ago

After Wechaty 1.x upgrade, my javascript based program is now broken:

const bot = new Wechaty({
            ^
TypeError: Wechaty is not a constructor

I know Wechaty 1.x still support esm and cjs, so theoretically javascript is still supported.

Can someone provide a javascript version of ding-dong program PLEASE!

PS.

I'm neither a TypeScript programmer not a javascript programmer, so I need a working javascript program to begin with converting my existing javascript based program, which I had contributed at

Hope that it had helped people before, and hopefully I can have a favor in return.

那位大侠出手帮个忙吧!👆

我既不是 TypeScript 程序员也不是 javascript 的,新的Wechaty 1.x 让我的 javascript程序彻底残废了😭😭😭

谁能好心帮帮忙啊🙏🙏

Thanks!

suntong commented 2 years ago

https://github.com/padlocal/wechaty-puppet-padlocal-demo/issues/17