Advertisement
Guest User

Untitled

a guest
Dec 28th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 23.55 KB | None | 0 0
  1. #Bee.py
  2.  
  3. import socket, string, time, random
  4.  
  5. HOST = "irc.chat.twitch.tv"
  6. PORT = 6667
  7.  
  8. #NICK is the nickname of the bot's account
  9. NICK = "barrybeebot"
  10.  
  11. #PASS is the oauth of the bot's account, you can get it by going to https://twitchapps.com/tmi/ while logged in with the bot's account
  12. PASS = 'oauth:pp8wl12gnbbwxuh3x3ocph0v4tw5ml'
  13.  
  14. #CONNECTTO is the name of the streamer to connect to
  15. CONNECTTO = "linky628"
  16.  
  17. #Only strimmer can use bot
  18. private = False
  19.  
  20. #spams everytime someone says Blub
  21. autoBlub = False
  22.  
  23. #spams everytime someone says happy birthday
  24. birthdayMode = False
  25.  
  26. # if true say hi to anyone who salute in chat
  27. autoSalute = False
  28.  
  29. #Minimum time between messages in the pyramid
  30. minimumwait = 1.02
  31.  
  32. def choice(x):
  33.     return {
  34.         0 : "It's gonna cost your life,",
  35.         1 : "Follow your memes,",
  36.         2 : "It's no use,",
  37.         3 : "A wise decision,",
  38.         4 : "Very likely,",
  39.         5 : "Yes,",
  40.         6 : "No,",
  41.         7 : "Who cares?, " + CONNECTTO + " is gonna get WR this urn PogChamp , ",
  42.         8 : "Even you know that's wrong,",
  43.         9 : "MayBEE,",
  44.         10: "Only if you plan on jumping off a bridge afterwards,",
  45.         11: "It's a win win situation",
  46.         12: "Wynaut?,",
  47.         13: "I can't think on a single reason why not,",
  48.         14: "Not in this lifetime,",
  49.         15: "Without a doubt,",
  50.         16: "Probably in the near future,",
  51.         17: "Is there any downside?, ",
  52.         18: "My response is: memes,",
  53.         19: "Let it BEE,",
  54.         20: "BEElive on it,",
  55.         21: "Just BEE yourself",
  56.         22: "That's desBEEcable,",
  57.         23: "BEE clear what you are getting yourself into,",
  58.         24: "I was gonna respond to that but it would BEE a waste of time,",
  59.         25: "You should try to BEE a bit less STINGY,",
  60.         26: "Check BUZZfeed,",
  61.         27: "You are unBEElievably silly",
  62.         28: "Sounds like it's good to BEE you,",
  63.         29: "Eat lots of vitamin BEE,",
  64.         30: "UnBEElivable"
  65.     }[x]
  66.  
  67. def copypasta(x):
  68.     return {0 : "(ง ͠ ͠° ل͜ °)ง ᴛʜᴇ ᴜɴsᴇᴇɴ ᴅᴏɴɢᴇʀ ɪs ᴛʜᴇ ᴅᴇᴀᴅʟɪᴇsᴛ (ง ͠° ل͜ °)ง ",
  69.             1 : "ヽ༼ຈل͜ຈ༽ノ RAISE YOUR DONGERS ヽ༼ຈل͜ຈ༽ノ ",
  70.             2 : "(ง ͠° ͟ʖ ͡°)ง ᴛʜɪs ɪs ᴏᴜʀ ᴄʜᴀᴛ ᴍᴏᴅs (ง ͠° ͟ʖ ͡°)ง (ง •̀_•́)ง ʏᴇᴀʜ sᴘᴀᴍ ɪᴛ! (ง •̀_•́)ง",
  71.             3 : "Roses are red, My arse is in heaven Because i just got fucked By TheLegend27",
  72.             4 : "It simply is not true? I know, butterflies, more important than 300 deaths which are based on the number of high school, I have peace. Monkeys trained to fight, and I'm not a military sniper. You anything, but it was not. We wanted to determine the sex. I mean, I see the face of the earth. If you think you can find something on the Internet? Evo cars. Be prepared for hidden spy network in the United States to attack the larvae of intellectual property rights, I must say better. The storm destroyed painful memories. Half of the children died. You can do it anywhere and I can already killed hundreds of hands. This is wrong, but smaller oil reserves, like an old man 'that some phones Navy to play ugly.' But now we can not pay ridiculous prices. I do not want to disrupt their wounds. Half of the children died.",
  73.             5 : "👌👀👌👀👌👀👌👀👌👀 good shit go౦ԁ sHit👌 thats ✔ some good👌👌shit right👌👌there👌👌👌 right✔there ✔✔if i do ƽaү so my self 💯 i say so 💯 thats what im talking about right there right there (chorus: ʳᶦᵍʰᵗ ᵗʰᵉʳᵉ) mMMMMᎷМ💯 👌👌 👌НO0ОଠOOOOOОଠଠOoooᵒᵒᵒᵒᵒᵒᵒᵒᵒ👌 👌👌 👌 💯 👌 👀 👀 👀 👌👌Good shit",
  74.             6 : "Yeah get a load of this guy over here. Dr. Knows Shit About Copypasta. Let me tell you a bit about my background. I’ve been writing copypasta since I was in the 5th fucking grade. I may have stopped being original years ago but believe me I know this shit inside out. I don’t know what the fuck your problem is. Believe me when I tell you, I don’t have any patience for people who come into my life pretending to know shit about what goes on in my life. Think for a fucking moment before you come to me with this pedantic nonsense about copypasta. Have you ever been to /r/copypasta? seen my pasta collection? I sincerely doubt it. And even then you probably hadn’t completed your course at the fucking copypasta academy. I've been writing copypasta on reddit for almost two years and I can tell you I spent my time in " + CONNECTTO + "'s chat with the copypastas. Please get fucked.",
  75.             7 : "Why is 6 afraid of 7? Six hasn't been the same since he left Vietnam. He can seldom close his eyes without opening them again at fear of Charlies lurking in the jungle trees. Not that you could ever see the bastards, mind you. They were swift, and they knew their way around the jungle like nothing else. He remembers the looks on the boys' faces as he walked into that village and... oh, Jesus. The memories seldom left him, either. Sometimes he'd reminisce - even hear - Tex's southern drawl. He remembers the smell of Brooklyn's cigarettes like nothing else. He always kept a pack of Lucky's with him. The boys are gone, now. He knows that; it's just that he forgets, sometimes. And, every now and then, the way that seven looks at him with avid concern in his eyes... it makes him think. Sets him on edge. Makes him feel like he's back there... in the jungle.",
  76.             8 : "What the fuck did you just fucking say about me, you little bitch? I’ll have you know I graduated top of my class in the Navy Seals, and I’ve been involved in numerous secret raids on Al-Quaeda, and I have over 300 confirmed kills. I am trained in gorilla warfare and I’m the top sniper in the entire US armed forces. You are nothing to me but just another target. I will wipe you the fuck out with precision the likes of which has never been seen before on this Earth, mark my fucking words. You think you can get away with saying that shit to me over the Internet? Think again, fucker. As we speak I am contacting my secret network of spies across the USA and your IP is being traced right now so you better prepare for the storm, maggot. The storm that wipes out the pathetic little thing you call your life. You’re fucking dead, kid. I can be anywhere, anytime, and I can kill you in over seven hundred ways, and that’s just with my bare hands. Not only am I extensively trained in unarmed combat, but I have access to the entire arsenal of the United States Marine Corps and I will use it to its full extent to wipe your miserable ass off the face of the continent, you little shit. If only you could have known what unholy retribution your little “clever” comment was about to bring down upon you, maybe you would have held your fucking tongue. But you couldn’t, you didn’t, and now you’re paying the price, you goddamn idiot. I will shit fury all over you and you will drown in it. You’re fucking dead, kiddo.",
  77.             9 : "Gr8 b8, m8. I rel8, str8 appreci8, and congratul8. I r8 this b8 an 8/8. Plz no h8, I'm str8 ir8. Cre8 more, can't w8. We should convers8, I won't ber8, my number is 8888888, ask for N8. No calls l8 or out of st8. If on a d8, ask K8 to loc8. Even with a full pl8, I always have time to communic8 so don't hesit8",
  78.             10: "So today i was in the supermarket going to buy some cheese for the next week before the stores close, got 8 packages of finest Dutch. When i was waiting in line to pay for it a gentleman in front of me collapsed, his wife looked at us and said 'He has Hypoglycemia, someone please bring something that contains sugar!!'. I immediately ran to the sweets section, after only 1 minute of choosing since i was in a hurry, i went with ice-cream snickers bar and ran back to the register, with my trembling hands i got rid of the plastic cover, i leaned to the old gentleman, when he turned to me: 'I know you...' he said 'you are that guy from Twitch... Keep it, you need it more with all that salt...",
  79.             11: "Guys can you please not spam the chat.? My mom bought me this new laptop and it gets really hot when the chat is being spammed. Now my leg is starting to hurt because it is getting so hot. Please, if you don't want me to get burned, then dont spam the chat",
  80.             12: "° ☾ ☆ ¸. ¸  ★  :.  . • ○ ° ★  .   . .  ¸ .   °  ¸. * ● ¸ . ...somewhere   ° ☾ °  ¸. ● ¸ .  ★ ° :.  . • °   .  * :. .in a parallel universe ● ¸     ° ☾ °☆  . * ¸.   ★ ★ ° . .    . ☾ °☆  . * ●" + CONNECTTO + " isn't a casual...° ☾ ★ °● ¸ .   ★ ° :.  . • ○ ° ★",
  81.             13: "I like to raise my Donger I do it all the time ヽ༼ຈل͜ຈ༽ノ and every time its lowered┌༼ຈل͜ຈ༽┐ I cry and start to whine ┌༼@ل͜@༽┐But never need to worry ༼ ºل͟º༽ my Donger's staying strong ヽ༼ຈل͜ຈ༽ノA Donger saved is a Donger earned so sing the Donger song! ᕦ༼ຈل͜ຈ༽ᕤ",
  82.             14: " ༼ ▀̿Ĺ̯▀̿ ̿ ༽Hello, my name is Juan Pastoroni, CEO of Copy Pasta Industries. I'd like to let you know that we've just gained copyrights on a lot of copy pastas seen in this chat. If you are using them right now, please refrain from doing so, or risk being fined under copyright infringement. Thank you, and don't be funny and copy and paste this. This is business, kid.༼ ▀̿Ĺ̯▀̿ ̿ ༽",
  83.             15: "So I went to a Strip Club in Greece the other night and guess who i saw there. It was the " + CONNECTTO + " with hundreds of 5 dollar bills. So the Stripper goes in a hot pose, " + CONNECTTO +  " smiles and pours himself a glass of OJ. " + CONNECTTO +  " said 'Welcome to the 5 Dollar Club' and they went into a private room. Not sure what happened then but i guess he gave her a brofist.",
  84.             16: "ヽ༼ຈل͜ຈ༽ノ WHAT DOESNT KILL ME ONLY MAKES ME DONGER ᕙ༼ຈل͜ຈ༽ᕗ  ",
  85.             17: "ヽ༼ຈل͜ຈ༽ノ FOREVER DONG ヽ༼ຈل͜ຈ༽ノ ",
  86.             18: "[̲̅$̲̅(̲̅ ͡° ͜ʖ ͡°̲̅)̲̅$̲̅] Mo' money, mo' Dongers [̲̅$̲̅(̲̅ ͡° ͜ʖ ͡°̲̅)̲̅$̲̅] ",
  87.             19: "̿'̿'͇̿̿=( ͠° ͟ʖ ͡°)=ε/̵͇̿̿/'̿̿ ̿ ̿ ̿ ̿ ̿ DUDE̿̿ ̿̿ ̿'̿'͇̿̿=( ͠° ͟ʖ ͡°)=ε/̵͇̿̿/'̿̿ ̿ ̿ ̿ ̿ ̿ PLEASE NO COPY PASTERONI MACORONI DONGERIN ",
  88.             20: "ヽ༼ຈل͜ຈ༽ง MY RIGHT DONG IS ALOT STRONGER THAN MY LEFT ONE ヽ༼ຈل͜ຈ༽ง",
  89.             21: "ヽ༼ʘ̚ل͜ʘ̚༽ノIS THAT A DONGER IN YOUR POCKET?ヽ༼ʘ̚ل͜ʘ̚༽ノ  ",
  90.             22: "༼ ºل͟º༽ NO ONE CARED WHO I WAS UNTIL I PUT ON THE DONG ༼ ºل͟º༽  ",
  91.             23: "༼ ºل͟º༽ I DIDN'T CHOOSE THE DONGLIFE, THE DONGLIFE CHOSE ME ༼ ºل͟º༽ ",
  92.             24: "ヽ༼ຈل͜ຈ༽ノ LETS GET DONGERATED ヽ༼ຈل͜ຈ༽ノ ",
  93.             25: "(ง'̀-'́)ง DONG OR DIE (ง'̀-'́)ง   ",
  94.             26: "(ง ͠° ل͜ °)ง LET ME DEMONSTRATE DONGER DIPLOMACY (ง ͠° ل͜ °)ง",
  95.             27: " ༼ ºل͟º༼ ºل͟º༼ ºل͟º༼ ºل͟º ༽ºل͟º ༽ºل͟º ༽You either die a DONG, or live long enough to become the DONGER༼ ºل͟º༼ ºل͟º༼ ºل͟º༼ ºل͟º ༽ºل͟º ༽ºل͟º ༽",
  96.             28: "༼ ºل͟º༼ ºل͟º༽ºل͟º ༽ YOU COPERINO FRAPPUCCIONO PASTARINO'D THE WRONG DONGERINO ༼ ºل͟º༼ ºل͟º༽ºل͟º ༽",
  97.             29: " ༼ ºل͟º ༼ ºل͟º ༼ ºل͟º ༽ ºل͟º ༽ ºل͟º ༽ YOU PASTARINO'D THE WRONG DONGERINO ༼ ºل͟º ༼ ºل͟º ༼ ºل͟º ༽ ºل͟º ༽ ºل͟º ༽",
  98.             30: "༼ ºل͟º༼ ºل͟º༼ ºل͟º༼ ºل͟º ༽ºل͟º ༽ºل͟º ༽YOU CAME TO THE WRONG DONGERHOOD༼ ºل͟º༼ ºل͟º༼ ºل͟º༼ ºل͟º ༽ºل͟º ༽ºل͟º ༽",
  99.             31: " (ง ͠° ͟ل͜ ͡°)ง I have been training since before I was born, and today is the day. Today is the day I spam. (ง ͠° ͟ل͜ ͡°)ง",
  100.             32: " (̿▀̿ ̿Ĺ̯̿̿▀̿ ̿)̄ ɴᴀᴍᴇ's ᴅᴏɴɢ. ᴊᴀᴍᴇs ᴅᴏɴɢ (̿▀̿ ̿Ĺ̯̿̿▀̿ ̿)̄",
  101.             33: "Tᴏ ᴘʀᴏᴛᴇᴄᴛ ᴛʜᴇ ᴄʜᴀᴛ ғʀᴏᴍ ᴅᴇᴠᴀsᴛᴀᴛɪᴏɴ. ᴛᴏ ᴜɴɪᴛᴇ ᴀʟʟ sᴘᴀᴍᴍᴇʀs ᴡɪᴛʜɪɴ ᴏᴜʀ ɴᴀᴛɪᴏɴ. ᴛᴏ ᴅᴇɴᴏᴜɴᴄᴇ ᴛʜᴇ ᴇᴠɪʟ ᴏғ Tʀᴜᴍᴘ ᴀɴᴅ ᴍᴏᴅs. ᴛᴏ ᴇxᴛᴇɴᴅ ᴏᴜʀ sᴘᴀᴍ ᴛᴏ ᴛʜᴇ sᴛᴀʀs ᴀʙᴏᴠᴇ. ᴄᴏᴘʏ! ᴘᴀsᴛᴇ! ᴄʜᴀᴛ sᴘᴀᴍ ʙʟᴀsᴛ ᴏғғ ᴀᴛ ᴛʜᴇ sᴘᴇᴇᴅ ᴏғ ʟɪɢʜᴛ! sᴜʀʀᴇɴᴅᴇʀ ᴍᴏᴅs ᴏʀ ᴘʀᴇᴘᴀʀᴇ ᴛᴏ ғɪɢʜᴛ. ",
  102.             34: "everytime " + CONNECTTO + " fucks up, i pull a pube, i have 3 coffee tins full of pubes, most of them are sizeable in length but a few are a little greasy. they are soft and delicate and will go good in the custom pokemon blanket i am making for " + CONNECTTO + ".",
  103.             35: "Ladies and gentlemen, I recently lost my job and am currently unemployed. Twitch chat has been my safe haven and comfort during this time. However, I come to this stream today and what do I see? A ridiculous amount of copypasting tomfoolery. Please, have respect for the intellectuals here and try to return to the days of glorious discussion in twitch chat.",
  104.             36: "i got cancer once, the doctor said that i had suffered from a common case of reading a twitch tv chat. apparently as soon as i glanced at the chat a huge tumor formed in my brain. the cure was rather simple, eat a magic cybrix pizza and i was all better",
  105.             37: "Dear Mr. " + CONNECTTO + ". I heard that you stole my secret ingredient formula for my patented coffee, the Frappucino kripperino ojerino pastarino Grand.  Please remove it from your cafeteria immediately or i will sue you thereby inflicting legal damage. Thank you",
  106.             38: "I’m Rick Harrison and this is my pawn shop. I work here with my old man and my son, " + CONNECTTO + ", and in 23 years I’ve learned one thing. You never know what is gonna come through that door",
  107.             39: "╰༼ಠʖ̯ಠ༽ノ LOWER CASE IS FOR THE LOWER CLASS ╰༼ಠʖ̯ಠ༽ノ",
  108.             40: "୧༼ಠ益ಠ༽୨ UNFOLLOW UNSUB UNDONATE UNBORN FORMAT:C DELETE SYSTEM32 CRAWL BACK INTO MOTHER REVERSE BIG BANG ୧༼ಠ益ಠ༽୨",
  109.             41: "(° ~͜ʖ~ °)I heard-a you-a guys-a like-a da pasta!(° ~͜ʖ~ °)",
  110.             42: "ᴴᵉᶫᶫᵒ, ᶦᵗ ᶦˢ ᵐᵉ ᴰᵒᶰᵍᵉʳᶦᶰᵒ ᴹᵃᶜᵃʳᵒᶰᶦ, ᴾʳᵉˢᶦᵈᵉᶰᵗ ᵒᶠ ᶜᵒᵖʸ ᴾᵃˢᵗᵃ ᴵᶰᵈᵘˢᵗʳᶦᵉˢ⋅ ᵂᵉ ʰᵃᵛᵉ ʳᵉᶜᵉᶦᵛᵉᵈ ᵐᵃᶰʸ ᶜᵒᵐᵖᶫᵃᶦᶰᵗˢ ᶠʳᵒᵐ ʸᵒᵘʳ ˢᵗʳᵉᵃᵐ ᵃᵇᵒᵘᵗ ᵗʰᵉ ᶫᵃᶜᵏ ᵒᶠ ᶜᵒᵖʸ ᵖᵃˢᵗᵃ ᵖʳᵒᵈᵘᶜᵗˢ ʸᵒᵘʳ ᶜʰᵃᵗ ᶦˢ ᵘˢᶦᶰᵍ⋅ ᴬˢ ʸᵒᵘʳ ˢᵖᵒᶰˢᵒʳ, ʷᵉ ˢᵘᵍᵍᵉˢᵗ ʸᵒᵘ ˢᵘᵖᵖᶫʸ ʸᵒᵘʳ ᶜʰᵃᵗ ʷᶦᵗʰ ᵐᵒʳᵉ Kappa's ᵒʳ ༼ຈل͜ຈ༽'s ᵗᵒ ᵏᵉᵉᵖ ʸᵒᵘʳ ᶜʰᵃᵗ ᵘᵖ ᵗᵒ ᶜᵒᵐᵖᵃᶰʸ ˢᵗᵃᶰᵈᵃʳᵈˢ⋅ ᵀʰᵃᶰᵏ ʸᵒᵘ ᶠᵒʳ ʸᵒᵘʳ ᵗᶦᵐᵉ⋅",
  111.             43: " ͡° ͜ʖ ͡°)╯╲_____卐卐卐 Oh, don't mind me. Just taking the Mods for a walk",
  112.             44: "Donger is whatever you want it to be. Donger is a creed, a motto, a way of life. Donger is the hopes and dreams of future generations. Donger is what brings us together and spreads us apart. Donger is love, donger is life.",
  113.             45: "༼ຈل͜ຈ༽ノ ༼ ºل͟º ༽ ୧༼ ͡◉ل͜ ͡◉༽୨ (ง ͠° ل͜ °)ง ヽ༼ʘ̚ل͜ʘ̚༽ノ୧༼ಠ益ಠ༽୨乁( ◔ ౪◔)ㄏ─=≡Σ((( つ◕ل͜◕)つ (ง •̀_•́)ง┌(° ͜ʖ͡°)┘(ง ͠ ͠° ل͜ °)งᕙ༼◕ل͜◕༽ᕗ Sorry, I dropped my Ultra Variety Pack bag of Dongers. ༼ຈل͜ຈ༽ノ ༼ ºل͟º ༽ ୧༼ ͡◉ل͜ ͡◉༽୨ (ง ͠° ل͜ °)ง ヽ༼ʘ̚ل͜ʘ̚༽ノ୧༼ಠ益ಠ༽୨乁( ◔ ౪◔)ㄏ─=≡Σ((( つ◕ل͜◕)つ (ง •̀_•́)ง┌(° ͜ʖ͡°)┘(ง ͠ ͠° ل͜ °)งᕙ༼◕ل͜◕༽ᕗ",
  114.             46: "(=◕ل͜◕=) Daddy, where do dongers come from? (=◕ل͜◕=) ヽ( ͝° ͜ʖ͡°)ノYou see, little dong, when a donger and a dongerina dong together, the dong of the donger releases thousands of small dongs, which dongs the dongerina. 9 dongs later, the dongerina goes through a dong process, which finally raises a donger. ヽ( ͝° ͜ʖ͡°)ノ ",
  115.             47: "DO IT, just DO IT! Don’t let your dreams be dreams. Yesterday, you said tomorrow. So just. DO IT! Make. your dreams. COME TRUE! Just… do it! Some people dream of success, while you’re gonna wake up and work HARD at it! NOTHING IS IMPOSSIBLE!You should get to the point where anyone else would quit, and you’re not gonna stop there. NO! What are you waiting for? … DO IT! Just… DO IT! Yes you can! Just do it! If you’re tired of starting over, stop. giving. up.",
  116.             48: "˙ʇı ןןɐɔ noʎ ɹǝʌǝʇɐɥʍ ɹo ,ɐʇǝq, pǝɹǝpısuoɔ buıǝq ɟo ʞɔıs ɯ,ı ˙ʇı ʇnoqɐ ʎɹɔ oʇ ǝɯ oʇ ʞןɐʇ ʎןuo puɐ ‘ʇıɥs ǝʞıן ɯǝɥʇ ʇɐǝɹʇ oɥʍ sʎnb bɐqǝɥɔnop ɹǝʇɟɐ ob sʎɐʍןɐ sןɹıb ǝsǝɥʇ puǝ ǝɥʇ uı ˙ʎpɐן,ɯ ɹoɟ buıɥʇʎuɐ op pןnoʍ puɐ ‘qoظ ǝɔıu ɐ ʞɹoʍ ‘ʎnb ǝɔıu ɐ ɯ,ı ˙ǝuoz puǝıɹɟ ǝɥʇ uı ʇnd buıǝq sʎɐʍןɐ ı ɯɐ ʎɥʍ",
  117.             49: "TᕼIᔕ ᗰᕮᔕᔕᗩGᕮ Iᔕ ᑭᖇOTᕮᑕTᕮᗪ ᗷY ᗩ ᔕᑭᕮᑕIᗩᒪ ᖴOᑎT. IT'ᔕ IᗰᑭOᔕᔕIᗷᒪᕮ TO ᑕOᑭY IT. TᖇY ᗩᑎᗪ YOᑌ ᗯIᒪᒪ ᖴᗩIᒪ",
  118.             50: "DansGame Seriously. I'm all for copy pasta but will you idiots stop copying the name as well? How hard it is to highlight it without the name DansGame"}[x]
  119.  
  120. def birthday(x):
  121.     return{
  122.         0: "BIRTHDAY? PogChamp",
  123.         1: "it still is Happy birthday cam FeelsBirthdayMan IceCold",
  124.         2: "o shit i forgot it was his birthday, *hugs*",
  125.         3: " Its a birthday strim again FeelsGoodMan",
  126.         4: "HAPPYBIRTHDAYBIRTHDAYBOY FEELSBIRTHDAYMAN",
  127.         5: "BIRTHDAYMEMEBOIIIIIIS",
  128.         6: "PagChomp BIRTHDAY? PagChomp FeelsBirthdayMan"
  129.     }[x]
  130.  
  131. def spam():
  132.     newMessage = ""
  133.     divided = message.split(" ")
  134.     toRep = ""
  135.     for i in range(1, len(divided)):
  136.         toRep += divided[i]
  137.         toRep += " "
  138.     for i in range(0, 200):
  139.         newMessage += toRep
  140.         newMessage += " "
  141.         if len(newMessage) + len(toRep) >= 500:
  142.             break
  143.     send_message(newMessage)
  144.  
  145. def NormalMode():
  146.     if not private or username == "bladomguy" or username == CONNECTTO or username == "barrybeebot":
  147.         if "bee movie" in message:
  148.             send_message(
  149.                 "According to all known laws of aviation, there is no way a bee should be able to fly. Its wings are too small to get its fat little body off the ground. The bee, of course, flies anyway because bees don't care what humans think is impossible. @" + username)
  150.         if message == "RAISE YOUR DONGERS":
  151.             send_message("ヽ༼ຈل͜ຈ༽ノ RAISE YOUR DONGERS BOIS ヽ༼ຈل͜ຈ༽ノ")
  152.         if "!spam" in message and message.split(" ")[0] == "!spam":
  153.             spam()
  154.         if "!pyramid" in message:
  155.             py = message.split(" ")[1] + " "
  156.             send_message(py)
  157.             time.sleep(minimumwait)
  158.             send_message(py + py)
  159.             time.sleep(minimumwait)
  160.             send_message(py + py + py)
  161.             time.sleep(minimumwait)
  162.             send_message(py + py + py + py)
  163.             time.sleep(minimumwait)
  164.             send_message(py + py + py)
  165.             time.sleep(minimumwait)
  166.             send_message(py + py)
  167.             time.sleep(minimumwait)
  168.             send_message(py)
  169.         if "!Ask" in message or "!ask" in message:
  170.             send_message(choice(random.randint(0, 30)) + " @" + username)
  171.         if message == "!pasta" or message == "!Pasta" or message == "!copypasta":
  172.             send_message(copypasta(random.randint(0, 50)))
  173.         if message == "!RIP":
  174.             send_message("RIP in pepperoni, spaghetti, bolognesa, copypasta, in peace, here lies " + CONNECTTO + " 'u will be missed' -Twitch chat 2016-2017, take ur BibleThump 's out BOIS or u will die tonite, don't forget to raise ur DONGERS")
  175.  
  176. def AutoBlubMode():
  177.     if "Blub" in message:
  178.         send_message(message + " @" + username)
  179.  
  180. def send_message(message):
  181.     s.send(bytes("PRIVMSG #" + CONNECTTO + " :" + message + "\r\n", "UTF-8"))
  182.  
  183. s = socket.socket()
  184. s.connect((HOST, PORT))
  185. s.send(bytes("PASS " + PASS + "\r\n", "UTF-8"))
  186. s.send(bytes("NICK " + NICK + "\r\n", "UTF-8"))
  187. s.send(bytes("JOIN #" + CONNECTTO + " \r\n", "UTF-8"))
  188.  
  189. while True:
  190.     line = str(s.recv(1024))
  191.     if "End of /NAMES list" in line:
  192.         break
  193.  
  194. while True:
  195.     for line in str(s.recv(1024)).split('\\r\\n'):
  196.         parts = line.split(':')
  197.         if len(parts) < 3:
  198.             continue
  199.  
  200.         if "QUIT" not in parts[1] and "JOIN" not in parts[1] and "PART" not in parts[1]:
  201.             message = parts[2][:len(parts[2])]
  202.  
  203.         usernamesplit = parts[1].split("!")
  204.         username = usernamesplit[0]
  205.  
  206.         if message == "!lock":
  207.             if username == "bladomguy" or username == CONNECTTO or username == "barrybeebot":
  208.                 private = True
  209.                 send_message("I've been locked, while locked no user other than strimmer can use me")
  210.  
  211.         if message == "!unlock":
  212.             if username == "bladomguy" or username == CONNECTTO or username == "barrybeebot":
  213.                 private = False
  214.                 send_message("I've been unlocked")
  215.  
  216.         if username == "barrybeebot":
  217.             time.sleep(minimumwait)
  218.  
  219.         if message == "!state":
  220.             if private:
  221.                 send_message(" I am currently in private mode, nobody can use me other than strimmer, to unlock me !unlock(strimmer only)")
  222.             else:
  223.                 send_message(" I am currently in public mode, everybody can use me, to lock me !lock(strimmer only)")
  224.  
  225.         lowerMessage = message.lower()
  226.  
  227.         if lowerMessage == "!wr":
  228.             send_message("SM64 120 star: 1h 40m 10s by cheese05. SMG2 242: 9h 17 19s by Vallu. SMG 120 star: 6h 06m 01s by Vallu. SMS 120 shines: 3h 04m 18s by Average Trey. @" + username)
  229.  
  230.         if birthdayMode:
  231.             if "birthday" in lowerMessage:
  232.                 send_message(birthday(random.randint(0, 6)))
  233.  
  234.         print(username + ": " + message)
  235.         if autoBlub == False:
  236.             NormalMode()
  237.         else:
  238.             AutoBlubMode()
  239.  
  240.         if autoSalute:
  241.             if "hello " in lowerMessage or "hi " in lowerMessage or "sup " in lowerMessage or "hallo " in lowerMessage:
  242.                 send_message("Sup @" + username)
  243.  
  244.         if message == "!AutoBlub":
  245.             if not private or username == "bladomguy" or username == CONNECTTO or username == "barrybeebot":
  246.                 if not autoBlub:
  247.                     autoBlub = True
  248.                     send_message("AutoBlub mode activated, all Blubs are gonna be imitated, all other commands are deactivated to reactivate normal commands !AutoBlub(strimmer only)")
  249.                 else:
  250.                     autoBlub = False
  251.                     send_message("Autoblub mode deactivated")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement