Skip to content
Permalink
master
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
#Chatbot should introduce itself when it is added to a Discord server.
import random
chatbotName = "Hedgehog"
def greetings():
print("I am " + chatbotName + ".")
name = input("What's your name?\n")
greet = list(("Hi ", "Hello ", "Hiya ", "Sup ", "Hey ", "Hey there ", "Bonjour "))
out = random.choice(greet)
print(out + name + "!")
if name == "Hedgehog":
sameName = list(("Wow! We share a name!", "What a coincidence!", "Looks like we both have the coolest name!"))
sameNameOut = random.choice(sameName)
print(sameNameOut)
else:
difName = list(("Cool name!", "I like that name!", "Cool name, but not as cool as mine though! :D"))
difNameOut = random.choice(difName)
print(difNameOut)
questionList = list(("Feel free to ask me a question!", "If you have a question, ask away!"))
questionEngage = random.choice(questionList)
print(questionEngage)
return name