Python Script Help ( Pattern matching)

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
Medy
Posts: 42
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Python Script Help ( Pattern matching)

Post by Medy » Sun Dec 03, 2017 9:13 pm

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 !

Medy
Posts: 42
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Re: Python Script Help ( Pattern matching)

Post by Medy » Sun Dec 03, 2017 10:24 pm

Never Mind ... stackoverflowed it :D

Example :

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

Post Reply