well now there a wasteof.module!
Here’s the docs: https://oren-lindsey.github.io/wasteof-client-docs/setup
The repo: https://github.com/Oren-Lindsey/wasteof-client3
Here’s a little sample of what it can do:
import { Wasteof2Auth } from 'wasteof-client'
const wasteof = new Wasteof2Auth('ee','bacon')
await wasteof.login()
wasteof.listen(async (event) => {
if (event.type == 'updateMessageCount') {
await wasteof.post('I have new messages!', null)
}
})
It’s very cool! :)