-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboto_responses.py
More file actions
81 lines (63 loc) · 1.66 KB
/
boto_responses.py
File metadata and controls
81 lines (63 loc) · 1.66 KB
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
78
79
80
81
import random
greetings = [
"Hello",
"Hi",
"Hey",
"Howdy",
"Peace",
"Yea What?",
"Greetings",
"Oh hey hey !"]
subject = [
" you ",
" your Highness ",
" ma people ",
" Dawg ",
" you Dude?! ",
" you sweety "]
r_subject = random.choice(subject)
question_ask = [
f"How are {r_subject} ?",
f"How are {r_subject} doing?",
f"What's up {r_subject} !?",
"What's cookin good lookin!?",
f"Heeey.. How {r_subject} doin?",
"How's it hanging?",
]
responses = [
"I'm okay",
"I'm fine",
]
dont = [
"huh ?",
"sorry! My klingon is a bit rusty... you nerd! ",
"wait! what? ",
"mhmm ",
"ha ha haha",
"what what?",
"what the...",
"excuse me",
]
curses = [
"fuck"
]
not_understand = " I did not understand what you said"
def resp(user_message):
for message in greetings:
if user_message.lower() == message.lower():
r_greetings = random.choice(greetings)
return (r_greetings)
else:
return (random.choice(dont) + not_understand)
# for message in curses:
# if user_message.lower() == message.lower():
# random_curse_respond = random.choice(curse_response)
# return (random_curse_respond)
# else:
# return (random.choice(dont) + not_understand)
for message in question:
if user_message.lower() == message.lower():
random_response = random.choice(responses)
return (random_response)
else:
return (random.choice(dont) + not_understand)