@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 (single view)

I did it btw.

View all comments