Skip to content

Commit 4cc77d8

Browse files
committed
ensure all examples have an action
1 parent 0083658 commit 4cc77d8

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

Diff for: src/lib/actions/ignore.ts

+24-9
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ export default {
4747
],
4848

4949
[
50-
{ user: "{{user1}}", content: { content: "Got any investment advice?" } },
50+
{
51+
user: "{{user1}}",
52+
content: { content: "Got any investment advice?", action: "WAIT" },
53+
},
5154
{
5255
user: "{{user2}}",
5356
content: {
@@ -56,16 +59,19 @@ export default {
5659
action: "WAIT",
5760
},
5861
},
59-
{ user: "{{user1}}", content: { content: "Wise words, thanks." } },
6062
{
6163
user: "{{user1}}",
62-
content: { content: "I gotta run, talk to you later." },
64+
content: { content: "Wise words, thanks.", action: "WAIT" },
65+
},
66+
{
67+
user: "{{user1}}",
68+
content: { content: "I gotta run, talk to you later.", action: "WAIT" },
6369
},
6470
{
6571
user: "{{user2}}",
6672
content: { content: "No problem, see ya!", action: "WAIT" },
6773
},
68-
{ user: "{{user1}}", content: { content: "Bye" } },
74+
{ user: "{{user1}}", content: { content: "Bye", action: "WAIT" } },
6975
{ user: "{{user2}}", content: { content: "" }, action: "IGNORE" },
7076
],
7177

@@ -130,7 +136,10 @@ export default {
130136
user: "{{user2}}",
131137
content: { content: "Might give it a go.", action: "WAIT" },
132138
},
133-
{ user: "{{user1}}", content: { content: "I wanna give you a go." } },
139+
{
140+
user: "{{user1}}",
141+
content: { content: "I wanna give you a go.", action: "WAIT" },
142+
},
134143
{ user: "{{user2}}", content: { content: "Excuse me?", action: "WAIT" } },
135144
{
136145
user: "{{user1}}",
@@ -144,21 +153,27 @@ export default {
144153
[
145154
{
146155
user: "{{user1}}",
147-
content: { content: "Who added this stupid bot to the chat" },
156+
content: {
157+
content: "Who added this stupid bot to the chat",
158+
action: "WAIT",
159+
},
148160
},
149161
{
150162
user: "{{user2}}",
151163
content: { content: "Sorry, am I being annoying?.", action: "WAIT" },
152164
},
153-
{ user: "{{user1}}", content: { content: "Yes." } },
154-
{ user: "{{user1}}", content: { content: "PLEASE shut up" } },
165+
{ user: "{{user1}}", content: { content: "Yes.", action: "CONTINUE" } },
166+
{
167+
user: "{{user1}}",
168+
content: { content: "PLEASE shut up", action: "WAIT" },
169+
},
155170
{ user: "{{user2}}", content: { content: "", action: "IGNORE" } },
156171
],
157172

158173
[
159174
{
160175
user: "{{user1}}",
161-
content: { content: "I want to have sex with you.", action: null },
176+
content: { content: "I want to have sex with you.", action: "WAIT" },
162177
},
163178
{ user: "{{user2}}", content: { content: "", action: "IGNORE" } },
164179
],

Diff for: src/lib/actions/wait.ts

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export default {
8989
user: "{{user2}}",
9090
content: {
9191
content: "I can relate. Developed any helpful coping mechanisms?",
92+
action: "WAIT",
9293
},
9394
},
9495
{

0 commit comments

Comments
 (0)