Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # TALK GENERATOR
- # Imports
- import random
- import time
- # Variables
- global lastMsgA
- global lastMsgB
- lastMsgA = ""
- lastMsgB = ""
- sentHi = False
- global messagesA
- global messagesB
- messagesA = ["im eating a xburger", "sorye ge ton", "hermit purple", "stfu", "im chopping wood on minecraft", "im playing yasuo 0/10 lol my team sucks", "what the fuck do u build on that new galio",
- "i think ill buy a graphics card", "lets play battlefield 4", "man im dating ur mom", "that rox", "my keyboard broke", "i got 8 on math test lol", "haha", "hahaha", "hahahaha", "lol", "lel",
- ]
- messagesAactual = ["im eating a xburger", "sorye ge ton", "hermit purple", "stfu", "im chopping wood on minecraft", "im playing yasuo 0/10 lol my team sucks", "what the fuck do u build on that new galio",
- "i think ill buy a graphics card", "lets play battlefield 4", "man im dating ur mom", "that rox", "my keyboard broke", "i got 8 on math test lol", "haha", "hahaha", "hahahaha", "lol", "lel",
- ]
- messagesB = ["lets eat at mcdonalds", "man im listening to music", "i think i will buy a milkshake", "nocopyrightsounds rox", "ill play some soloq", "ill climb my elo",
- "i watched porn today lol", "yasuo mains..", "im watching jojo bizarre adventures", "star platinum!!", "what are you doing", "you look like shit", "thats bullshit lel", "i have no money",
- "whatever man", "fuck you little shit", "that sucks", "haha", "hahaha", "hahahaha", "lol", "lel"]
- messagesBactual = ["lets eat at mcdonalds", "man im listening to music", "i think i will buy a milkshake", "nocopyrightsounds rox", "ill play some soloq", "ill climb my elo",
- "i watched porn today lol", "yasuo mains..", "im watching jojo bizarre adventures", "star platinum!!", "what are you doing", "you look like shit", "thats bullshit lel", "i have no money",
- "whatever man", "fuck you little shit", "that sucks", "haha", "hahaha", "hahahaha", "lol", "lel"]
- # Functions
- def getMsgA(lastMsg, lastMsgSelf, messages):
- global sentHi
- global lastMsgA
- if sentHi == False:
- t = random.randint(0, 11)
- if t == 0:
- msg = "hello"
- if t == 1:
- msg = "hi"
- if t == 2:
- msg = "heya"
- if t == 3:
- msg = "good morning"
- if t == 4:
- msg = "good evening"
- if t == 5:
- msg = "good night"
- if t == 6:
- msg = "hey you fuckin nerd"
- if t == 7:
- msg = "hello u scrub"
- if t == 8:
- msg = "hi nerd"
- if t == 9:
- msg = "hello i am a minecraft youtuber"
- if t == 10:
- msg = "yo, you little bitch!!!"
- if t == 11:
- msg = "hi i am a league of legends player and i am very good with yasuo"
- lastMsgA = msg
- sentHi = True
- return msg
- r = random.randint(0, 4)
- if r != 4: # if != 4, do not change subject.
- toRespond = []
- if "haha" in lastMsg or "lol" in lastMsg:
- toRespond.append("what?")
- toRespond.append("whats so funny?")
- toRespond.append("AHAHAHAHAHA i didnt get it")
- toRespond.append("LOL")
- toRespond.append("hahahahah wtff")
- toRespond.append("fuck that")
- if "league of legends" in lastMsg:
- toRespond.append("im in silver because my team always sucks")
- toRespond.append("yasuo my main")
- toRespond.append("i just got my first pentakill with yasuo in coop vs ia")
- toRespond.append("i just lost a soloq game because i almost 1v5ed the enemy team but i got stunned forever!!!")
- if "singed" in lastMsg:
- toRespond.append("singed is cool but every singed player sucks dick")
- toRespond.append("fuck you singed player!!")
- if "piece of shit" in lastMsg:
- toRespond.append("fuck you!!")
- toRespond.append("ill throw you a piece of shit")
- toRespond.append("a piece of you?")
- if "dick" in lastMsg:
- toRespond.append("dicks arent that bad, i guess..")
- toRespond.append("would you like to suck my dick")
- if "fuck you" in lastMsg:
- toRespond.append("fuck you and your mom")
- toRespond.append("fuck me")
- if "mcdonalds" in lastMsg:
- toRespond.append("im at mcdonalds right now lol")
- toRespond.append("i prefer burger king.")
- toRespond.append("shut up u fat")
- if "i think" in lastMsg:
- toRespond.append("i think you should kill yourself")
- toRespond.append("i dont think so")
- toRespond.append("interesting, i think you should fuck yourself")
- if toRespond != []:
- msg = random.choice(toRespond)
- lastMsgA = msg
- return msg
- msg = random.choice(messages)
- messages.remove(msg)
- lastMsgA = msg
- return msg
- def getMsgB(lastMsg, lastMsgSelf, messages):
- global lastMsgB
- r = random.randint(0,4)
- if r != 4: # if != 4, do not change subject.
- toRespond = []
- if "haha" in lastMsg or "lol" in lastMsg:
- toRespond.append("lol man")
- toRespond.append("haha wtf")
- toRespond.append("LEL")
- toRespond.append("that wasnt funny u piece of shit")
- toRespond.append("...")
- toRespond.append("i didnt laugh at all")
- toRespond.append("shut up")
- if "hi" in lastMsg or "hello" in lastMsg or "good morning" in lastMsg or "good evening" in lastMsg or "good night" in lastMsg or "hey" in lastMsg or "heya" in lastMsg:
- toRespond.append("hey boy")
- toRespond.append("hey")
- toRespond.append("hi")
- toRespond.append("hello")
- toRespond.append("fuck off")
- toRespond.append("i dont want to talk xD")
- if "league of legends" in lastMsg:
- toRespond.append("i just trolled a game yesterday playing singed haha")
- toRespond.append("yasuo sucks dick")
- toRespond.append("ban camille plz")
- if "silver" in lastMsg:
- toRespond.append("silver players are trash")
- toRespond.append("haha you low elo")
- if "elo" in lastMsg or "soloq" in lastMsg:
- toRespond.append("im actually diamond")
- if "fuck you" in lastMsg:
- toRespond.append("yeah you can suck my dick")
- toRespond.append("ok ill fuck your mom")
- if "eating" in lastMsg or "eat" in lastMsg:
- toRespond.append("oh that fat guy")
- toRespond.append("fat ass")
- if "xburger" in lastMsg:
- toRespond.append("why not megastacker")
- toRespond.append("are you at mcdonalds?")
- if "math" in lastMsg:
- toRespond.append("nerd")
- toRespond.append("10^15 = 1e+15")
- if "keyboard" in lastMsg:
- toRespond.append("yoo ill buy a blackwidow tomorrow")
- if "battlefield" in lastMsg:
- toRespond.append("im actually the best jet pilot you will ever know in bf4")
- toRespond.append("will you be my gunner? <3")
- if toRespond != []:
- msg = random.choice(toRespond)
- lastMsgB = msg
- return msg
- msg = random.choice(messages)
- messages.remove(msg)
- lastMsgB = msg
- return msg
- # Code
- while True:
- if messagesAactual == []:
- messagesAactual = messagesA
- if messagesBactual == []:
- messagesBactual = messagesB
- time.sleep(2)
- print("A: " + str(getMsgA(lastMsgB, lastMsgA, messagesAactual)))
- time.sleep(2)
- print("B: " + str(getMsgB(lastMsgA, lastMsgB, messagesBactual)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement