Skip to content
Permalink
196c1205be
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
16 lines (9 sloc) 601 Bytes
#made by Ridvan Karaman
#sentences the bot will respond with if the user used one of the keywords
greet_keywords = ("Hello" , "hello", "Hi" , "hi" , "What's up", "what's up", "Sup", "sup", "How's it going","Howdy", "Yo", "Greetings", "greetings")
greet_responces = ["Hello there! ", "Hey" , "Hello to you, too!", "Oh, hi there!", "Look who it is!"]
def greet_check(sentence):
""" return a greeting responce if the user's input was in any of the keywords"""
for word in sentence.words:
if word in greet_keywords:
return random.choice(greet_responces)