Page 1 of 1

Python Script Help ( Pattern matching)

Posted: Sun Dec 03, 2017 9:13 pm
by Medy
Hi there ,
I dont know any python so I need help to write this 1 command. ;D

I have 1 payload :
eg.event.payload.arcomm == "test123":

what I want is to check if this payload "test123" contains the word test.
If it does then -->

eg.TriggerEvent("eg.event.payload.arcomm") --> create event with that payload

is it possible doing this with evenghost ?

Thanks !

Re: Python Script Help ( Pattern matching)

Posted: Sun Dec 03, 2017 10:24 pm
by Medy
Never Mind ... stackoverflowed it :D

Example :

if 'auf YouTube' in title:
eg.TriggerEvent(prefix='Special', suffix=newtitle)