Ghawken / iMessagePlugin

IndigoPlugin for iMessage sending and parsing. Allows Indigo to react and response to any iMessage received and allows question/answers to users from Indigo via iMsg.
3 stars 0 forks source link

Better organisation of incoming messages #3

Closed Ghawken closed 5 years ago

Ghawken commented 5 years ago

Occasionally still get double action despite message being the same. And would be nice to read the lists and make received all lowercase.

Aim to better organise the list of buddyID, message, ChatID received via BuddyID.

Likely create internal nested lists from message received by BuddyID, dropping Chat ID at this stage?

Probably like:

Sql Data Received from Messages (add the chat ID): [example@com, "Hello", 123213123],[example@com, "Hello", 123213123],[example@com, "Turn On Light", 123213123],[anotherbuddy@com,"Hello',12213123123]

going to saving as self.messages or similar: Nested List: [example@com, "Hello", "Turn On Light"],[anotherbuddy@com,'Hello'] Deleting message from buddy's list as trigger run

Need to bed down the data structure - probably Nested List.

Ghawken commented 5 years ago

Done in 0.1.0 As dict - so only parses last message within that 10 seconds from that buddy