Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Peaches-Chatbot/Chatbox4.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
24 lines (12 sloc)
982 Bytes
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
#start code of by giving them an intro about the chat bot and what it provides | |
def intro(): | |
print("Hello, I am your personal, user- friendly therapy chat bot!") | |
print("I have the ability to provide you with advice on certain mental health issues such as stress, depression, anxiety and bullying,") | |
print("or I am more than delighted to be a listener if that helps you feel better and that's what you need") | |
print("Would you like to talk?") | |
answer=input() | |
ans = ["yes", "YES", "Yes"] | |
if answer in ans: | |
print ("Before starting the session I would like you to know that I will maintain confidentiality and ensure that all of the details that you may provide me with remain private, and at the end of the session all of your data will be cleared and not be used for other purposes.") | |
print("How may I help you today?") #ask a question to start of the conversation with the user | |
intro() | |