Help seperating variable
Posted: 01 Jun 2019 01:39
this is gonna be odd, but i have a flow i made that reads my messages on trillian messenger and discord via {notification_text}
but here's the kicker, if i my smartwatch isn't connected (speaker) i don't want it to read the whole message. I'd like to get just the name of the person sending the message, and have , for example "incoming discord message from Princess popo"
now this should be possible i think, i just don't know the right variable/function to use, which is why i'm asking for help.
the {notification_text} seems to get this format
Princess popo
but i don't want carrots for dinner
With a obvious "line break" in every test i've run, so while it's not using an "character", like colon, comma, semicolon, it IS separating the message from the name, ion the case of discord AND trillian messenger.
SO i'm looking for a way to make automagic see that line break, and say "global_incomingname = part before the line break" so it can then reed out "incoming discord message from princess popo"
Can someone help me with this?
actually after typing this out i looked at my test which is also getting {content_title} and that may be where the name is.. it looks like for each message i got someone else's name was saved in {content_title} on discord and trillian...
but here's the kicker, if i my smartwatch isn't connected (speaker) i don't want it to read the whole message. I'd like to get just the name of the person sending the message, and have , for example "incoming discord message from Princess popo"
now this should be possible i think, i just don't know the right variable/function to use, which is why i'm asking for help.
the {notification_text} seems to get this format
Princess popo
but i don't want carrots for dinner
With a obvious "line break" in every test i've run, so while it's not using an "character", like colon, comma, semicolon, it IS separating the message from the name, ion the case of discord AND trillian messenger.
SO i'm looking for a way to make automagic see that line break, and say "global_incomingname = part before the line break" so it can then reed out "incoming discord message from princess popo"
Can someone help me with this?
actually after typing this out i looked at my test which is also getting {content_title} and that may be where the name is.. it looks like for each message i got someone else's name was saved in {content_title} on discord and trillian...