summaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
Diffstat (limited to 'example.py')
-rw-r--r--example.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/example.py b/example.py
index 07838cf..2a6adc1 100644
--- a/example.py
+++ b/example.py
@@ -8,14 +8,14 @@ from blockext import *
def not_(value):
return not value
-@command("say %s for %n secs")
+@command("say %s for %n secs", blocking=True)
def say_for_secs(text="Hello", duration=5):
import time
print(text)
time.sleep(duration)
-@command("play note %n", blocking=True)
+@command("play note %n")
def play_note(note):
print("DING {note}".format(note=note))
time.sleep(2)