Skip to content

Commit

Permalink
docs: fix dsl_skill example to not use a state
Browse files Browse the repository at this point in the history
  • Loading branch information
yoptar committed Jul 29, 2019
1 parent 6ee4d9e commit 4317150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deeppavlov/skills/dsl_skill/dsl_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def handler(commands: Optional[List[str]] = None,
.. code:: python
class ExampleSkill(metaclass=DSLMeta):
@DSLMeta.handler(commands=["hello", "hey"], state="greeting")
@DSLMeta.handler(commands=["hello", "hi", "sup", "greetings"])
def __greeting(context: UserContext):
response = "Hello, my friend!"
confidence = 1.0
Expand Down

0 comments on commit 4317150

Please sign in to comment.