Updated Procedures, event hooks and cronjobs as Python scripts (markdown)

Fabio Manganiello 2020-10-13 23:45:37 +02:00
parent 1c645ec92a
commit 4198e234d0
1 changed files with 0 additions and 2 deletions

@ -45,7 +45,6 @@ Similarly, you can also define custom hooks:
# ~/.config/platypush/scripts/test.py
from platypush.event.hook import hook
from platypush.utils import run
from platypush.message.event.assistant import SpeechRecognizedEvent
@hook(SpeechRecognizedEvent)
@ -58,7 +57,6 @@ As well as cronjobs:
# ~/.config/platypush/scripts/test.py
from platypush.cron import cron
from platypush.utils import run
# Run it every minute
@cron('* * * * *')