evex-dev / linejs

LINEJS is a JavaScript library for creating a LINE SelfBot.
https://linejs.evex.land
MIT License
42 stars 14 forks source link

feat(event-emitter): add `waitFor` method #32

Closed nakasyou closed 2 weeks ago

nakasyou commented 2 weeks ago

Description

I added a promise method to TypedEventEmitter. If you merged it, you can write code like that:

const [pin] = await client.promise('pincall')

Checklist

If you feel good :), please do the contents of the checklist.