Skip to content

Commit 4ec2e4b

Browse files
committed
Add: responses
1 parent 6fa38eb commit 4ec2e4b

2 files changed

Lines changed: 113 additions & 1 deletion

File tree

TODO.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@
2323
- Analysis plots ? ()
2424
- Motivation quotes (NOT INTERESTED)
2525
- Google (ignore on frontend)
26-
- Turn Off Maybe ?
26+
- Turn Off Maybe ?
27+
- Emotions responses should only be given after continuously

services/responses.py

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# EMOTIONS
2+
SIMPLE_EMOTIONS = ['anger', 'contempt', 'disgust', 'fear', 'happiness', 'neutral', 'sadness', 'surprise']
3+
COMPLEX_EMOTIONS = ['alert', 'tired', 'non_vigilant']
4+
5+
singled_responses = {
6+
'anger': [
7+
"Maybe talking to a friend would help out?",
8+
"Shall we take a short break, maybe that would ease things out?"
9+
],
10+
'contempt': [
11+
"In contempt......."
12+
],
13+
'fear': [
14+
"We hope everything is alright!",
15+
"Discussing & talking about problems gives us a peace of mind."
16+
],
17+
'disgust': [
18+
"Try switching to something different?",
19+
"Oof! That might have been something hard to watch!",
20+
"Ewwww !??? That's what we thought too!"
21+
],
22+
'happiness': [
23+
"Studies show that our bodies relax out when we get happy!",
24+
"Kudos! Glad to see that smile!",
25+
"Woah! Keep it up!"
26+
],
27+
'neutral': [
28+
"We can't really comprehend anything, maybe everything's just normal?",
29+
"Hmmmmmmmmmmmmmmmmm"
30+
],
31+
'sadness': [
32+
"Feeling low? We've all been there! Take a moment to appreciate what you see",
33+
"Ahhhh that sucks, Just let it all go, relax and connect with your own being",
34+
"I know something that always cheers me up, give a call to that old friend you haven't talked to for a while"
35+
],
36+
'surprise': [
37+
"WOOOOOAAAAAAHHH!!!",
38+
"Surprise! Surprise!"
39+
],
40+
'tired': [
41+
"Oooof!!!! You seem a bit overworked! Maybe take a break?",
42+
"Plan of action: For now just relax and listen to some music",
43+
"Feeling Tired how about some coffee or a power nap?"
44+
],
45+
'alert': [
46+
"Glad to see someone so engrossed in their work!",
47+
"We notice some serious concentration! Keep it up!"
48+
],
49+
'non_vigilant': [
50+
"Feeling a bit distracted ?",
51+
"Are we going off track ? Let's pause and figure that out!"
52+
]
53+
}
54+
55+
coupled_responses = {
56+
('anger', 'contempt'): '',
57+
('anger', 'disgust'): 'Woah! We recommend you to chill out a bit!',
58+
('anger', 'fear'): '',
59+
('anger', 'happiness'): 'I cant comprehend what you are going through right now!',
60+
('anger', 'neutral'): '',
61+
('anger', 'sadness'): '',
62+
('anger', 'surprise'): 'I cant comprehend what you are going through right now!',
63+
('anger', 'alert'): '',
64+
('anger', 'tired'): '',
65+
('anger', 'non_vigilant'): '',
66+
('contempt', 'disgust'): '',
67+
('contempt', 'fear'): '',
68+
('contempt', 'happiness'): '',
69+
('contempt', 'neutral'): '',
70+
('contempt', 'sadness'): '',
71+
('contempt', 'surprise'): '',
72+
('contempt', 'alert'): '',
73+
('contempt', 'tired'): '',
74+
('contempt', 'non_vigilant'): '',
75+
('disgust', 'fear'): '',
76+
('disgust', 'happiness'): '',
77+
('disgust', 'neutral'): '',
78+
('disgust', 'sadness'): '',
79+
('disgust', 'surprise'): '',
80+
('disgust', 'alert'): '',
81+
('disgust', 'tired'): '',
82+
('disgust', 'non_vigilant'): '',
83+
('fear', 'happiness'): '',
84+
('fear', 'neutral'): '',
85+
('fear', 'sadness'): '',
86+
('fear', 'surprise'): '',
87+
('fear', 'alert'): '',
88+
('fear', 'tired'): '',
89+
('fear', 'non_vigilant'): '',
90+
('happiness', 'neutral'): '',
91+
('happiness', 'sadness'): '',
92+
('happiness', 'surprise'): '',
93+
('happiness', 'alert'): '',
94+
('happiness', 'tired'): '',
95+
('happiness', 'non_vigilant'): '',
96+
('neutral', 'sadness'): '',
97+
('neutral', 'surprise'): '',
98+
('neutral', 'alert'): '',
99+
('neutral', 'tired'): '',
100+
('neutral', 'non_vigilant'): '',
101+
('sadness', 'surprise'): '',
102+
('sadness', 'alert'): '',
103+
('sadness', 'tired'): '',
104+
('sadness', 'non_vigilant'): '',
105+
('surprise', 'alert'): '',
106+
('surprise', 'tired'): '',
107+
('surprise', 'non_vigilant'): '',
108+
('alert', 'tired'): '',
109+
('alert', 'non_vigilant'): '',
110+
('tired', 'non_vigilant'): ''
111+
}

0 commit comments

Comments
 (0)