Created
June 2, 2022 11:36
-
-
Save Scofield-Idehen/de0bc43bb67e059d15dda3c4408a5a3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
def sample_responses(input_text): | |
user_message = str(input_text).lower() | |
if user_message in ("hello", "hi", "sup"): | |
return "Hey! Wh o goes you!!!" | |
if user_message in ("who are you", "can you help me", "who are you"): | |
return "I am a bot, how can i help you!!!" | |
if user_message in ("time", "time?", "date?"): | |
now = datetime.now() | |
date_time = now.strtime("%d/%m/%y, %H:%M:%S") | |
return str(date_time) | |
return "Please type something the human mind can comprehend" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment