A rewrite of @retep's Otto iMessages bot in NodeJS
We're just doing basic framework and testing right now. I will be doing a bunch of work on this soon enough, becuase exams are coming up in a few days and I don't feel like studying.
We're using MacOS 10.13 High Sierra
npm install
should be fine
- We use osa-imessage to do the things, it seems pretty great 👌
- However, after exploring the chat database, maybe we will have to write our own code to handle attachments and such. Hmmm.
- Took a ton of digging around on the internet, but I found on some
obscure wiki on the 14th page of google results, the
Path()
type in OSA/JSA. Fortunately, it works withosa2
, also by @wtfaremyinitials, so maybe we'll open a pull request. Anyways, you can now send attachments! Although, interestingly, you can't use file paths that use your home directory tilde. Ex:~/Desktop/image.png
doesn't work, but/Users/Bob/Desktop/image.png
works fine.
- Get basic framework ready
- Test out sending/receiving module
- Convert handles to real names somehow (Creator of
osa-imessage
actually added this in lol) - Test out importing external files
- Allow use of library.js for all functions that Otto can do
- Configurations/settings also in library.js (Location of contacts library, etc.)
- Allow logging, in a separate file, as an option in library.js config section
- Support for multiple DMs and/or group chats
- Write all functions
- Finish up, allow easy adding of custom functions