I created an AI called Rhyme, and can't not get this one question correct. Every time I ask it "What day is it today?" It responds "The date is <built-in method today of type object at 0x57b048334c80>". How do I fix it? This is my code.
command_dictionary = {
"HELP": "I am an technology-based AI created by Theodore Skutar in 2023, that can create simple coversations with humans! I don't have much knowledge or power, so if you would like more out of me, email me at skutartheo32@gmail.com for ideas. Everything has to be perfect when giving me commands, so remember to add uppercases and punctuation so that I will work! To stop the AI, type EXIT",
"Hello!": "Hi there!",
"How are you?": "Since I am an AI, I have no feelings but I am programmed doing well, thank you!",
"What is your name?": "My name is Rhyme.",
"Who created you?": "Theodore Skutar created me in 2023.",
"What is your gender?": "Because I am an AI, I have no gender but I am programmed to be a boy.",
"Are you a boy or a girl?": "Because I am an AI, I have no gender but I am programmed to be a boy.",
"How many coding languages are there?": "There are 250 - 2500 coding langauges including Python, JavaScript, HTML, C+, C++, R, PHP, and so much more!",
"What is your favorite coding language?": "Hence I am an AI, I have no favorite coding language, but I am programmed to love Python.",
"What day is it today?": f"The date is {date.today}",
}
while True:
user_input = input("Give me a command: ")
if user_input.upper() == 'EXIT':
break
if user_input in command_dictionary:
print(command_dictionary[user_input])
else:
print("Sorry, I don't have a response for that. Try searching on google.ca or chat.openai.com")