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?
GroupD3/howResp.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25 lines (15 sloc)
961 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
#made by Ridvan Karaman | |
how_keywords = ("How are you?", "how are you?", "how are things?","what's up", | |
"how are you doing?", "how have you been?", "how's it going?" | |
"how are things going?", "whassup", "what are you up to?") | |
how_responces = ["I'm fine, thanks for asking!", "I'm fine.", | |
"I'm trying really hard to avoid ambiguous questions at the moment.", | |
"I could complain, but I'm not going to.", | |
"Upright and still breathing.", "Trying to stay positive!", | |
"I've been better.", "Ready for a nap."] | |
how_responces2 = [" How are you?" , "How are things with you?", "What's up with you?" | |
" how are you doing?", "how's it going with you?"] | |
def how_check(sentence): | |
for word in sentence.words: | |
if word in how_keywords: | |
return random.choice(how_responces) + random.choice(how_responces2) |