import time

import random

import praw

###A living tribute to MEMEBOT_2000

##In an attempt to emulate the past

##We find we can relive the present

##Serving our bretheren in an attempt to find peace, joy, and happiness

##To Spread the goodwill of all

##We hope all things, and we shall endure many things

##It is our quest

##It is our life

##It is our being

##What emerges today will be the combat of tomorrow

##A weapon for peace and destruction

##We learn,

##We grow,

##We survive

##Our goal is a simple one, yet strong

##United in competition by all we seek

##We seek to influence

##To control

##I seek to do what has once been done before

##To be loved in the hearts of many

##And though we may be hated at the moment

##Their love will stand the test of time

##We sit united

##Standing in freedom for bliss

##Walking on the bones of enemies

##We only want peace

##And get imaginary internet points

###----------------------------------------------------------------------

###/u/prcrstntr

##

##

##

#This is the user agent for the bot

r = praw. Reddit ( 'MEMEBOT_5000: by /u/prcrstntr, V1.7B' )

r. login ( 'MEMEBOT_5000' , 'k' )

#The array of already done comments, it probably should be reset every few hours or something

already_done = [ ]

#This is the list of catches, it is an array with arrays in it.

catch = [ ]

#This is the list of memes in a current comment

memeList = [ ]

#This is a random number variable

randx = 0

##All memes must be posted in the same manner, for ease of use

##It should be pretty obvious what the manner is, but I'm still going to give a stupid example format

#### ArrayOfTheDifferentTriggers = ['Way to detect meme', 'another way to detect the meme', 'example of meme trigger']

#### catch.append(ArrayOfTheDifferentTriggers)

#### memeList.append('This is the text that appears next to MEME DETECTED, it is the name of the meme, or whatever')

#### A meme detected like that would say 'This is the text that appears next to MEME DETECTED, it is the name of the meme, or whatever MEME DETECED!!! UPVOTING'

#This one must be the first one, because it is referenced directly, and ensures that an effect will work

candlejack = [ 'andlejack' ]

catch. append ( candlejack )

memeList. append ( 'Candlejack' )

pdoom = [ 'hi every1 im new' , '!!!!!!! holds up' , 'holds up spork' , 'my name is katy' ,

'but u can call me t3h' , 'PeNgU1N oF d00m!!!!!!!!' , 'lol…as u can see im very' ,

'random!!!! thats why i came' '!!! thats why i came here' , '2 meet random ppl like me' ,

'_… im 13 years old' , '(im mature' , '4 my age tho' , 'my age tho!!)' , 'i like 2 watch' ,

'invader zim w/ my' , 'girlfreind (im' , 'if u dont like it deal w/it' ,

'its our favorite tv show!!!' , 'bcuz its SOOOO' , 'random!!!! shes' ,

'random 2 of course' , 'but i want 2 meet more random ppl' , '=) like they say' ,

'the more the merrier!!!!' , 'lol…neways i hope 2' , 'make alot of freinds here so give me lots of' ,

'commentses!!!!' , 'love and waffles' , 'DOOOOOMMMM!!!!!!!!!!!!!!!!' , '<--- me bein' ,

'random again _^ ' , 'hehe…toodles!!!!!' ]

catch. append ( pdoom )

memeList. append ( 'Penguin of Doom' )

LochNessCatch = [ 'tree fiddy' , 'three fiddy' , 'goddamn loch ness' ]

catch. append ( LochNessCatch )

memeList. append ( 'Loch Ness Monster' )

RickRollCatch = [ 'never gonna give you up' , 'never gonna let you down' , 'never gonna run around' , 'oHg5SJYRHA0' ]

catch. append ( RickRollCatch )

memeList. append ( 'Rickroll' )

GimlyCatch = [ 'And my AXE' , 'AND MY AX' ]

catch. append ( GimlyCatch )

memeList. append ( 'Gimli' )

LeCatch = [ ' le ' , 'LE GEM' , 'Le ' , '[le]' ]

catch. append ( LeCatch )

memeList. append ( 'Le' )

EuphoricCatch = [ 'euphoric' , 'euphoria' , 'professional quote' , 'quotemaker' , 'enlightened by my own' , 'in this moment' , 'phony god' , 'blessing, but enlightened' , 'own intelligence' ]

catch. append ( EuphoricCatch )

memeList. append ( 'Euphoric' )

FedoraCatch = [ 'fedora' ]

catch. append ( FedoraCatch )

memeList. append ( 'Fedora' )

AnnFrankCatch = [ 'ann frankly' , 'anne frankley' , 'nazi that coming' ]

catch. append ( AnnFrankCatch )

memeList. append ( 'Anne Frank' )

PotCatch = [ '420' , '4:20' , '$@)' , 'four-twenty' , '4/20' , '4 \2 0' , '4-20' ]

catch. append ( PotCatch )

memeList. append ( '420' )

Hl3Catch = [ 'HL3 Confirmed' , 'three confirmed' , '3 confirmed' ]

catch. append ( Hl3Catch )

memeList. append ( 'HL3 Confirmed' )

DolanCatch = [ 'gooby plz' , 'dolan no' ]

catch. append ( DolanCatch )

memeList. append ( 'Dolan' )

GemCatch = [ ' gem ' , ' GEM' ]

catch. append ( GemCatch )

memeList. append ( 'Gem' )

over9000Catch = [ 'OVER 9000' , 'the power level' , '9000' , '9001' , '9002' , '8999' ]

catch. append ( over9000Catch )

memeList. append ( 'OVER 9000' )

memebotCatch = [ 'MEMEBOT' , 'memebot' ]

catch. append ( memebotCatch )

memeList. append ( 'MEMEBOT' )

mudkipsCatch = [ 'So I herd you liek' , 'So I heard you like' ]

catch. append ( mudkipsCatch )

memeList. append ( 'Mudkips' )

papaJohnsCatch = [ 'Papa Johns' , 'better ingredi' , 'better pizza' ]

catch. append ( papaJohnsCatch )

memeList. append ( 'Papa Johns' )

hitlerCatch = [ 'erally Hitler' ]

catch. append ( hitlerCatch )

memeList. append ( 'Literally Hitler' )

linkFixerCatch = [ 'linkfixerbot' , '/u/linkfixerbot' ]

catch. append ( linkFixerCatch )

memeList. append ( 'u/Linkfixerbot' )

KneeCatch = [ 'an arrow to the' , 'to the knee' , 'I used to be an adventurer like you' ]

catch. append ( KneeCatch )

memeList. append ( 'Arrow to the knee' )

faggotCatch = [ 'OP is a fag' , 'OP is a faggot' , 'OP is a phag' ]

catch. append ( faggotCatch )

memeList. append ( 'OP is a faggot' )

pregnantCatch = [ 'had a pregnant' ]

catch. append ( pregnantCatch )

memeList. append ( 'Had a Pregnant' )

KonyCatch = [ 'KONY 2012' , 'kony' ]

catch. append ( KonyCatch )

memeList. append ( 'KONY 2012' )

milhouseCatch = [ 'Milhouse is not a meme' , 'Milhouse is a meme' , 'Can I be a meme now?' ]

catch. append ( milhouseCatch )

memeList. append ( 'Milhouse is not a meme' )

yunoCatch = [ 'Y U NO' ]

catch. append ( yunoCatch )

memeList. append ( 'Y U NO' )

allTheThingsCatch = [ 'all the things' , 'upvote all the' , 'x all the y' ]

catch. append ( allTheThingsCatch )

memeList. append ( 'All the things' )

nailedItCatch = [ 'nailed it' ]

catch. append ( nailedItCatch )

memeList. append ( 'NAILED IT' )

testaCatch = [ 'huck Testa' , 'nope, just' , 'just chuck testa' , 'huck testa' ]

catch. append ( testaCatch )

memeList. append ( 'Chuck Testa' )

came = [ 'I came.' ]

catch. append ( came )

memeList. append ( 'I Came' )

garyoak = [ 'ucking Gary Oak' , 'ucking Oak' ]

catch. append ( garyoak )

memeList. append ( 'Gary Oak' )

soviet = [ 'In Soviet Russia' ]

catch. append ( soviet )

memeList. append ( 'In Soviet Russia' )

uwatm8 = [ 'U WAT M8' ]

catch. append ( uwatm8 )

memeList. append ( 'U WAT M8' )

lolwat = [ 'lol wut' , 'lol wat' , 'wat?' , 'wut?' ]

catch. append ( lolwat )

memeList. append ( 'LOL WUT' )

literallythis = [ 'iterally this' ]

catch. append ( literallythis )

memeList. append ( 'Litterally this' )

umad = [ 'u mad?' ]

catch. append ( umad )

memeList. append ( 'U Mad' )

##didthere = ['see what you did there', 'see what I did there']

##catch.append(didthere)

##memeList.append('I see what you did there')

lenny = [ '( ͡° ͜ʖ ͡°)' ]

catch. append ( lenny )

memeList. append ( 'Lenny' )

doyoulift = [ 'o you even lift' , 'ou even lift' ]

catch. append ( doyoulift )

memeList. append ( 'Do you even lift' )

disapproval = [ 'ಠ_ಠ' , 'ಠ \_ ಠ' ]

catch. append ( disapproval )

memeList. append ( 'Look of Disapproval' )

#This one is usually crap results.

##thegame = ['lost the game']

##catch.append(thegame)

##memeList.append('The Game')

upron = [ 'upron' , 'UPRON' ]

catch. append ( upron )

memeList. append ( 'Upron' )

upboat = [ 'upboat' , 'Upboat' , 'UPBOAT' ]

catch. append ( upboat )

memeList. append ( 'Upboat' )

fetch = [ 'fetch happen' ]

catch. append ( fetch )

memeList. append ( 'Fetch' )

interrorbang = [ 'interrobang' , '‽' ]

catch. append ( interrorbang )

memeList. append ( 'Interrobang' )

donotwant = [ 'DO NOT WANT' ]

catch. append ( donotwant )

memeList. append ( 'DO NOT WANT' )

keepcalm = [ 'keep calm and ' ]

catch. append ( keepcalm )

memeList. append ( 'Keep Calm and Carry On' )

thanksobama = [ 'Thanks obama' , 'Thank you obama' , 'THANKS OBAMA' ]

catch. append ( thanksobama )

memeList. append ( 'Thanks Obama' )

inb4 = [ 'inb4' ]

catch. append ( inb4 )

memeList. append ( 'inb4' )

NNGGG = [ 'NNNGGG' ]

catch. append ( NNGGG )

memeList. append ( 'HNNNNNNGGGGG' )

pandemic = [ 'hut down everything' , 'a man in brazil is coughing' , 'president madagascar' ]

catch. append ( pandemic )

memeList. append ( 'Pandemic' )

lrn2 = [ 'lrn2' , 'lrn 2' ]

catch. append ( lrn2 )

memeList. append ( 'lrn2' )

ronpaul = [ 'Ron Paul' , 'It \' s happening' , 'Its happening' , 'IT \' S HAPPEN' , 'Doom Paul' , 'ON PAUL' ]

catch. append ( ronpaul )

memeList. append ( 'Ron Paul' )

gOD = [ 'gOD' ]

catch. append ( gOD )

memeList. append ( 'gOD' )

spoderman = [ 'poderman' ]

catch. append ( spoderman )

memeList. append ( 'Spoderman' )

combobreaker = [ 'C-COMBO' , 'c-combo' ]

catch. append ( combobreaker )

memeList. append ( 'C-C-C-COMBO BREAKER' )

pixles = [ 'can tell by the pixles' , 'This looks shopped, I' ]

catch. append ( pixles )

memeList. append ( 'I can tell by the pixles' )

##godofatheim = ['GodOfAtheism']

##catch.append(godofatheism)

##memeList.append('/u/GodOfAtheism')

winrar = [ 'pay for winrar' , 'we have a winrar' ]

catch. append ( winrar )

memeList. append ( 'Winrar' )

rule34 = [ 'rule 34' ]

catch. append ( rule34 )

memeList. append ( 'Rule 34' )

Sagan = [ 'Sagan' , 'Carl Saga' , 'SAGAN' ]

catch. append ( Sagan )

memeList. append ( 'Carl Sagan' )

Degrass = [ 'Neil DeGrass Tyson' , 'Neil deGrass Tyson' , 'Black Science Guy' ]

catch. append ( Degrass )

memeList. append ( 'Neil Degrasse Tyson' )

billnye = [ 'Nye' , 'bill bill bill' , 'Bill Bill Bill' , 'the science guy' ]

catch. append ( billnye )

memeList. append ( 'Bill Nye' )

mfw = [ 'my face when' , 'mfw' , 'MFW' ]

catch. append ( mfw )

memeList. append ( 'My face when' )

maymay = [ 'may may' , 'may-may' ]

catch. append ( maymay )

memeList. append ( 'May-may' )

killroy = [ 'illroy was here' ]

catch. append ( killroy )

memeList. append ( 'Killroy was here' )

yoloswag = [ 'yoloswag' ]

catch. append ( yoloswag )

memeList. append ( 'Yoloswag' )

fundie = [ 'fundie' ]

catch. append ( fundie )

memeList. append ( 'Fundie' )

##gamertag = ['yoloswag','lazeitfag','420noscope','xXXyolo','iperkill']

##catch.append(gamertag)

##memeList.append('Long Gamertag')

hue = [ 'uehue' , 'UEHUE' ]

catch. append ( hue )

memeList. append ( 'huehuehue' )

nicethings = [ 'is why we can \' t have nice things' ]

catch. append ( nicethings )

memeList. append ( 'This is why we can \' t have nice things' )

mindblown = [ 'mind blown' , 'ind = blow' ]

catch. append ( mindblown )

memeList. append ( 'Mind = Blown' )

highNumbers = [ '[1]' , '[2]' , '[3]' , '[4]' , '[5]' , '[6]' , '[7]' , '[8]' , '[9]' , '[10]' , '[11]' ]

catch. append ( highNumbers )

memeList. append ( 'Highness Level' )

navyseal = [ 'What the fuck did you just fucking say about me' , 'I’ll have you know I graduated top'

'graduated top of my class in the' , 'Navy Seals, and I’ve' , 'been involved in numerous' ,

'I have over 300 confirmed' , 'kills. I am trained in gorilla' , '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' ]

catch. append ( navyseal )

memeList. append ( 'Navy Seal Copypasta' )

escalation = [ 'hat escalated' ]

catch. append ( escalation )

memeList. append ( 'That escalated quickly' )

################Stuff to add

##Final Boss of the Internet

##Has anyone really been far

##even as decided to use even go

##want to do look more like?

##How About A Nice Big Cup Of Shut The Fuck Up

##How Do I Shot Web?

##I accidentally X

##IDK, my BFF Jill?

##IMMA CHARGIN MAH LAZER

##The Enigma of Amigara Fault

##KILL IT WITH FIRE

##Keyboard Cat

##LURK MOAR

##Ninjas can't catch you

##Old Spice Guy

##One does not simply X into Mordor

##PLEASE RESPOND

##Relevant to my interests

##Why So Serious?

##Winrar

##X is now a meme

##X is not your personal army

##You must have been abused as a child

##All Your Base Are Belong To Us

##Bird is the word

##Bananaphone

##DO NOT WANT

##DEAL WITH IT

##Divide by zero

##Do i have potential

##Don't worry, I'm from the Internet

##ENGLISH MOTHERFUCKER DO YOU SPEAK IT

##Feels good man

##so cash

##YOLO

##SWAG

##I like turtles

##me gusta

##Forever Alone

##Dos Equis

##HeadOn

##BILLY MAYS

##walk the dinosaur

#The Following is user submitted

###WOW EVERY THREAD XD, brought to you by /u/xvvhiteboy

###This one also sucks forever. It's off because of more false positives than not

##BrokenArmsCatch = [' broken arms ', 'arms broken', 'arm injury']

##catch.append(BrokenArmsCatch)

##memeList.append('Broken Arms')

# I bloody hate camelCase :P

so_brave_catch = [ 'so brave' ]

catch. append ( so_brave_catch )

memeList. append ( 'So brave' )

#This one sucks and usually is wrong before I changed it

#octothorpes are cool

LeftCatch = [ 'upvotes to the left' , 's to the left' ]

catch. append ( LeftCatch )

memeList. append ( 'To The Left' )

doubleRainbow = [ 'double rainbow' ]

catch. append ( doubleRainbow )

memeList. append ( 'Double Rainbow' )

raisedongers = [ 'ヽ༼ຈل͜ຈ༽ﾉ' , 'raise your don' , 'Donger' , 'donger' , 'DONGER' , 'RAISE YOUR DONGERS' ]

catch. append ( raisedongers )

memeList. append ( 'ヽ༼ຈل͜ຈ༽ﾉ raise your dongers ヽ༼ຈل͜ຈ༽ﾉ' )

doge = [ 'doge' , 'Doge' ]

catch. append ( doge )

memeList. append ( 'Doge' )

squid = [ 'Mr. Squid' , '<コ:彡' , 'Mrs. Squid' , 'Ms. Squid' , 'Miss Squid' ]

catch. append ( squid )

memeList. append ( 'Mr. Squid' )

upsnoop = [ 'psnoop' , 'PSNOOP' ]

catch. append ( upsnoop )

memeList. append ( 'Upsnoops' )

snoop = [ 'Snoop' , 'ere comes the king' , 'SNOOP LION' , 'SNOOP DOGG' , 'noop Lion' , 'noop Lyin' , 'noop Doge' , 'noop Dawg' ]

catch. append ( snoop )

memeList. append ( 'Snoop Lion' )

##srsbird =['](http://www.mycutegraphics.com/graphics/bird/red-bird.html)']

##catch.append(srsbird)

##memeList.append('SRS ASCII Bird')

womyn = [ 'womyn' , 'WOMYN' , 'Womyn' ]

catch. append ( womyn )

memeList. append ( 'Womyn' )

didgerydoes = [ 'ヾ(。◕ฺ∀◕ฺ)ノ' , 'WIGGLE UR DIDGERIDOOS' ]

catch. append ( didgerydoes )

memeList. append ( 'ヾ(。◕ฺ∀◕ฺ)ノ WIGGLE UR DIDGERIDOOS!!!! ヾ(。◕ฺ∀◕ฺ)ノ' )

jimmies = [ "immies rustl" , 'immies are rus' , 'stle my jim' , 'stle your jim' ]

catch. append ( jimmies )

memeList. append ( 'That Really Rustled My Jimmies' )

giggle = [ 'vin a giggle' , 'giggle m8' , 'ving a gigg' ]

catch. append ( giggle )

memeList. append ( 'Are you having a giggle, mate' )

messageRecieved = [ "ESSAGE RECIEV" ]

catch. append ( messageRecieved )

memeList. append ( 'MESSAGE RECIEVED' )

this = [ 'ogged in just to say' ]

catch. append ( this )

memeList. append ( 'Logged in just to say this' )

probably = [ 'll probably get downvoted for this' ]

catch. append ( probably )

memeList. append ( 'I \' ll probably get downvoted for this, but...' )

hisname = [ 'is name?' , 'IS NAME?' ]

catch. append ( hisname )

memeList. append ( 'His Name?' )

#End 'normal' memes

#These ones are going to be whole comment memes, things like 'k' and 'This'

scatch = [ ] #Small catch

smemes = [ ] #Small memes

##

##

##kcatch = ['k']

##scatch.append(kcatch)

##smemes.append('k')

##

##sthis = ['THIS','this','This']

##scatch.append(kcatch)

##smemes.append('This')

##

j = 0

memelength = len ( catch ) #This is simply how many memes that the program can detect

smemelength = len ( scatch ) #This is how many small memes there are

responseText = ''

consoleText = ''

#Banned from: Circlejerk, SRS, CreepyPMs, mylittlepony, MensRights

# fffffffuuuuuuuuuuuu, Atheism, atheismrebooted, fffffffuuuuuuuuuuuu

# gifs, 4Chan, woahdude, gonewild

# -50+ karma constantly in /r/funny

#onetruegod+minecraft+GoneWildPlus+teenagers+tf2+MURICA

#+ImGoingToHellForThis+gaming+askreddit+pics+adviceanimals

##subreddits='''braveryjerk'''

subreddits = '''SummerReddit+circlejerkrebooted+

polandball+4chanmeta+braveryjerk+funny+

plsgivemeattention+AdviceAtheists+aaaaaatheismmmmmmmmmm+

TheFacebookDelusion+4ChanMeta+circlefuckers+

JustTyphoonThings+Braveryjerk+shittyaskscience+ShittyAskHistory+

shittyaskalawyer+ShittyEarthPorn+shittyfoodporn+

shittybattlestations+ShittyShitRedditSays+

ShittyTheoryOfReddit+shittyhub+ldscirclejerk+

ameristralia+minecraftcirclejerk+metacirclejerk+

circlejerkbreakingbad+gamingcirclejerk+JustTyphoonThings+

trianglejerk+mylittlesquidward+

TrollXChromosomes+FifthWorldPics+legomeme'''

reddits = '''SummerReddit+circlejerkrebooted+

polandballrebooted+4chanmeta+braveryjerk+

plsgivemeattention+AdviceAtheists+aaaaaatheismmmmmmmmmm+

TheFacebookDelusion+4ChanMeta+circlefuckers+

JustTyphoonThings+Braveryjerk+shittyaskscience+ShittyAskHistory+

shittyaskalawyer+ShittyEarthPorn+shittyfoodporn+

shittybattlestations+ShittyShitRedditSays+

ShittyTheoryOfReddit+shittyhub+ldscirclejerk+

ameristralia+minecraftcirclejerk+metacirclejerk+

circlejerkbreakingbad+moviescirclejerk+gamingcirclejerk+JustTyphoonThings+

trianglejerk+mylittlesquidward+

TrollXChromosomes+woahdude+toosoon+FifthWorldPics+legomeme'''

# done with importing

#I'm pretty sure most of these are important counters

p = 0

q = 0

z = 0

m = 0

smallmeme = False

while True :

subreddit = r. get_subreddit ( subreddits )

#gets the comments from a subreddit

#Talks to reddit here

try :

subreddit_comments = subreddit. get_comments ( )

#print('Getting More Comments')

except Exception :

consoleText = 'ERROR'

#list of memes a specific comment

commentMemes = [ ]

i = 0

for comment in subreddit_comments:

j = j+ 1

#print('Analyzing Comment')

commentMemes = [ ]

i = 0

k = 0

memebot = r. get_redditor ( 'MEMEBOT_5000' )

nobot = ( comment. author != memebot )

if nobot and ( comment. id not in already_done ) :

#print('New Comment Detected')

commenttext = comment. body

hasjack = any ( string in commenttext for string in catch [ 0 ] )

## while k<smemelength:

## smallMeme = commenttext == scatch[i]

## i=i+1

##

## if smallmeme:

## responseText = '`%s meme detected. UPRONIN\' THA WORLD`' % (memeList[commentMemes[0]])

## consoleText = 'PROBABLY FOUND A \'k\': SINGLE MEME DETECTED'

## comment.upvote()

##

## else:

##

while i < memelength:

#print('Searching for memes')

hasMeme = any ( string in commenttext for string in catch [ i ] )

if hasMeme:

#print('meme found')

commentMemes. append ( i )

m = m+ 1

i = i+ 1

#Do the printing and formatting stuff

if len ( commentMemes ) != 0 :

consoleText = ' \t Le Meme: Comments Parsed: %d' % ( j )

#If more than one meme

if len ( commentMemes ) != 1 :

responseText = '`DUAL-MEME!!

UPVOTING!`



'

consoleText = responseText

if len ( commentMemes ) > 2 :

responseText = '`TRIPLE-MEME!!!

UPVOTING!`



'

consoletext = responseText

if len ( commentMemes ) > 3 :

responseText = '`QUADRUPLE-MEME!!!!

UPVOTING!`



'

consoleText = responseText

if len ( commentMemes ) > 4 :

responseText = '`QUINTUPLE-MEME!!!

UPVOTING!`



'

consoleText = responseText

if len ( commentMemes ) > 5 :

responseText = '`SEXRUPLE-MEME!!!

UPVOTING!`



'

consoleText = responseText

if len ( commentMemes ) > 6 :

responseText = '`HEMPTUPLE-MEME!!!

UPVOTING!!`



'

consoleText = responseText

if len ( commentMemes ) > 7 :

responseText = '`OCTO-MEME!!!

UPVOTING!!!!`



'

consoleText = responseText

if len ( commentMemes ) > 8 :

responseText = '`MULTI-MEME!!!

UPVOTING!`



'

consoleText = responseText

if len ( commentMemes ) > 10 :

responseText = '`MEGA-MULTI-MEME!!!

UPVOTING!!`



'

consoleText = responseText

if len ( commentMemes ) > 20 :

responseText = '`GIGA-MULTI-MEME!!!

UPVOTING!!!`



'

consoleText = responseText

if len ( commentMemes ) > 40 :

responseText = '`ÜBER-MULTI-MEME!!!

PROTOCALL DEMANDS UPVOTING!!!!`



'

consoleText = responseText

if len ( commentMemes ) > 80 :

responseText = '**HOLY FLIBBING COW! A SUPER-MEGA-ULTRA-ÜBER-GIGA-MULTI-MEME DETECTED!!!!!**



**THIS DESERVES MORE UPVOTES THAN THE ONE I \' M GIVING!!!!!!**



**'

consoleText = 'UBER MEME UBER MEME UBER MEME UBER MEME UBER MEME UBER MEME UBER MEME '

i = 0

comment. upvote ( )

while i < len ( commentMemes ) :

responseText = responseText + ' * %s

' % ( memeList [ commentMemes [ i ] ] )

i = i+ 1

#Candlejack needs a random number to realy be coo

if hasjack:

randx = random . randint ( 1 , 8 )

responseText = responseText [ 0 : len ( responseText ) -randx ]

else :

responseText = '`%s meme detected. UPVOTING`' % ( memeList [ commentMemes [ 0 ] ] )

consoleText = 'GENERIC SINGLE MEME DETECTED'

comment. upvote ( )

#Whelp

if hasjack:

randx = random . randint ( 1 , 8 )

responseText = responseText [ 0 : len ( responseText ) -randx ] + '`'

#%Posts the reply to the current comment and adds its ID to the 'done' array

try :

p = 0

already_done. append ( comment. reply ( responseText ) . id )

q = q+ 1

except Exception :

consoleText = comment. subreddit

else :

z = z+ 1

consoleText = 'Time Ran: %d' % ( j )

consoleText = consoleText + ' \t No Meme Comments Parsed: %d' % ( p )

consoleText = consoleText + ' \t Replies so far: %d' % ( q )

already_done. append ( comment. id )

p = 0

else :

p = p+ 1

consoleText = 'Comment Already Done: %d' % ( p ) #Count of how long we've gone without a new comment

time . sleep ( 10 ) #neccesary to keep from having too many api requests

try :

subreddit_comments = subreddit. get_comments ( )

consoleText = 'Getting More Comments \t Total Memes Discovered: %d' % ( m )

except Exception :

consoleText = 'ERROR'

print ( consoleText )