I have been developing an AI assistant called ‘Surfer’ and I added a few functions to it (who created you, what info do you collect, etc) and currently Surfer cannot tell the time, so he says: i cannot tell the time yet. But if I ask one of the questions I added that isn’t “What’s the time?” then Surfer just says the response he would say if he would tell the time. Here is the unfinished code for Surfer:
# Surfer Code for 2017 # Surfer is a digital assistant that is designed by EpicChasGamer.com import pygame, time, sys from Tkinter import * pygame.mixer.init() pygame.mixer.music.load("Responses/hello.ogg") pygame.mixer.music.play() question = raw_input("How can I help you? ") if question == 'privacy' or 'Privacy' or 'PRIVACY' or 'How do you use my information?' or 'how do you use my information' or 'how do you use my information?' or 'How do you use my information': pygame.mixer.music.stop() pygame.mixer.music.load("Responses/privacy.ogg") pygame.mixer.music.play() if question == 'who created you' or 'who made you' or 'Who made you' or 'who made you?' or 'who created you?' or 'Who made you?': pygame.mixer.music.stop() pygame.mixer.music.load("Responses/creator.ogg") pygame.mixer.music.play() if question == "What's the time" or 'what is the time' or 'What is the time?' or "What's the time?" or 'The time' or 'the time': pygame.mixer.music.stop() pygame.mixer.music.load("Responses/thetime.ogg") pygame.mixer.music.play() while pygame.mixer.music.get_busy() == True: continue
Thank you.
EpicChasGamer ☹ (sad because of my coding failure)
you’ve made it more complecated than it is
if i have time i’ll spawn a skeleton for you
you’ve got it right though !
LikeLiked by 1 person
If I run the program it always says the same thing: i cannot tell the time. Obviously, I am not giving out the ogg files so replace them with print.
LikeLike