Updated Procedures, event hooks and cronjobs as Python scripts (markdown)
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('* * * * *')
|
||||
|
|
Loading…
Reference in a new issue