Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- Possible clever bot
- Coded by Donny
- Version : 1.0
- '''
- from random import randint
- from random import choice
- questions = {"hello":"Hey!","sup":"Nothing much.","lol":"What's so funny about?","what is your name?":"My name is BOT", "who made you?":"DONNY<3", "how are you?":"I'm fine", "i'm fine":"Great!", "hi":"Hey!", "hey":"Hello",
- "do you have a life":"No, where do I buy one?","are you a robot?":"Ofcourse I am.","yes":"Good!","fuck you":"Go fuck yourself",
- "i don't know":"ok..","no":"=(", "fuck":"Go away.", "cool":"I know right!", "bye":"Good bye!","gtg":"Bye!"
- }
- def bot():
- bot = ['What is your name?', 'How are you?', "How's life?", "Cool", "What is your father's name?", "Do you have any pets?",
- "Do you have a computer?", "Do you think Linux is better than Mac and Windows?","How old are you?", "No", "Yes", "Right here.",
- "Was that funny?", "laughing my robotic ass off!", "You still here? :0", "Artificial intelligence.", "Are you scared of the dark?",
- "Do you eat bugs?","Do you have a facebook account?"
- ]
- bq = choice(bot)
- print(bq)
- def human(user):
- do = (questions[user])
- print(do)
- while True:
- user = input("Type : ").lower()
- if user not in questions:
- bot()
- else:
- human(user)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement