We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0666bb5 commit 0c4e388Copy full SHA for 0c4e388
docs/logic/create-a-logic-adapter.rst
@@ -74,7 +74,7 @@ but statements such as "Do you know what time it is?" will not be processed.
74
.. code-block:: python
75
76
def can_process(self, statement):
77
- if statement.text.startswith('Hey Mike')
+ if statement.text.startswith('Hey Mike'):
78
return True
79
else:
80
return False
@@ -94,7 +94,7 @@ For this example we will use a fictitious API endpoint that returns the current
94
'what' and 'is' and 'temperature'.
95
"""
96
words = ['what', 'is', 'temperature']
97
- if all(x in statement.text.split() for x in words)
+ if all(x in statement.text.split() for x in words):
98
99
100
0 commit comments