Skip to content

Instantly share code, notes, and snippets.

@cherdt cherdt/bot.yaml
Last active Feb 23, 2019

Embed
What would you like to do?
a simple chatbot definition
---
- name: Greetings Bot
- match: intro
replies:
- i'm just learning to be a chatbot. try saying 'hello'
- match: hello|hi|yo
replies:
- howdy
- hi
- salutations
- match: "do you like ([^?]+)"
replies:
- "I love %1!"
- "I've never tried %1, but I'd like to"
- match: .*talk
replies:
- I like to talk about you!
- What do you want to talk about?
- match: bye|goodbye
replies:
- goodbye
- see ya
- later
- match: ".*"
replies:
- sorry, I don't understand
- does not compute
- i'm really just learning
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.