-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResponses.py
More file actions
29 lines (18 loc) · 801 Bytes
/
Responses.py
File metadata and controls
29 lines (18 loc) · 801 Bytes
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
from datetime import datetime
def sample_responses(input_text):
user_message = str(input_text).lower()
if user_message in ("hello", "hi", "start"): # Where You Can Edit How The Bot Respond to User Input
return "Hey! How's it going?"
if user_message in ("who are you", "who are you?"):
return "I am a Responsive Bot Made by @dsurareddy"
if user_message in ("whats up", "what's up bro?"):
return "Feeling Better"
if user_message in ("date", "date?"):
now = datetime.now()
date = now.strftime("%d/%m/%y")
return str(date)
if user_message in ("time", "time?"):
now = datetime.now()
time = now.strftime("%H:%M:%S")
return str(time)
return "I Don't Understand You."