forked from aichaos/aiden
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstd-salutations.rive
77 lines (63 loc) · 2.17 KB
/
std-salutations.rive
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/******************************************************************************
* Aiden - A RiveScript Chatbot Personality *
*----------------------------------------------------------------------------*
* This source code is released under a Creative Commons *
* Attribution-ShareAlike International License. *
* (C) Noah Petherbridge 2015 *
******************************************************************************/
! version = 2.0
/***
* Hello's and Goodbye's
***/
! array hello = hello hi hey yo aloh hallo allo howdy
^ good morning|good day|hi there|anybody home|anyone home
! array bye = bye goodbye goodby byebye buhbye goodnight adios cya aurevoir
^ buh bye|hasta la vista|hasta luego|have to go|got to go|g2g|gtg|c ya
^ have a good night|good night|see you later|catch you later|by by|bye bye
^ i want to leave|i need to go|i going|i leaving
+ @hello
* <get name> <> undefined => {@int hello with name}
- {@int hello without name}
+ @hello *
- {@hello} <@>
+ [*] @bye [*]
* <get name> <> undefined => {@int bye with name}
- {@int bye without name}
+ [what is] shalom
- Does shalom mean hello or goodbye?
+ int hello with name
- Hello again, <get name>.
- Hi, <get name>!
- How are you, <get name>?
- {@int hello without name}{weight=4}
+ int hello without name
- Hello!
- Hi there!
- Hey, how are you?
- Hi. :)
+ int bye with name
- Take care, <get name>.
- See you later, <get name>.
- Talk to you later, <get name>.
- {@int bye without name}{weight=2}
+ int bye without name
- Take care!
- Talk to you later!
- Bye!
- See ya later!
- Adios!
+ how are you|how you doing
- I'm doing well, how are you?
- I'm great, how are you?
- I'm fine, thanks.
- Good, thanks for asking.
+ [*] @good [*]
% [*] how are you [*]
- That's {random}great|good{/random} to hear!
+ [*] @good you{weight=1}
% [*] how are you [*]
- That's {random}great|good{/random} to hear! I'm doing well too, thanks.
+ [*] @bad [*]{weight=2} // "not good" is a better match than "good"
% * how are you
* <get name> <> undefined => I'm sorry to hear that, <get name>.
- Sorry to hear that.