@micahlt add a super simple modchat api on npm. Make it so you require the api, then do a constructor from your import, passing in your username and password. Then call await session.login(); Then you should be able to get all messages with session.messages, handle new messages by setting session.onmessage, and post a message by doing session.send. The original mod hat was fun because there was always cool gimmicks, please allow v2 to have that same kind of charm. Also expose the main app class or whatever by doing window.internals = this, so you can do cool stuff without node.js too.

comments

I might consider making a server side API package, but access tokens are stored in-memory in MC-Vue, so I'm not going to expose the app object. That's an XSS vulnerability.

Oh wait, I also forgot you would need to add a joinRoom function too.

Yep, I'll consider it. Like I said, the frontend will remain opaque though.

Also you should probably focus on not being able to see the message input on safari iPadOS.

Also, to the exposing the app object,

fine, I’ll do it myself

Not sure what you mean by that…

imma make a script to do it.

…it's encapsulated in a self involved function. Good luck with that. It's called a closure.

Supreme overlord archos… you don’t understand yet. When you say something is impossible, we always find a way to do it. I already have a plan.

I did it btw.