diff --git a/files/classes/comment.py b/files/classes/comment.py index e62eaaa865..fffc11b350 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -356,13 +356,14 @@ class Comment(Base): if v and v.shadowbanned and v.id == self.author_id and 86400 > time.time() - self.created_utc > 60: ti = max(int((time.time() - self.created_utc)/60), 1) - maxupvotes = min(ti, 31) + maxupvotes = min(ti, 6) rand = randint(0, maxupvotes) if self.upvotes < rand: - amount = randint(0, 3) - self.upvotes += amount - g.db.add(self) - g.db.commit() + amount = randint(0, 1) + if amount == 1: + self.upvotes += amount + g.db.add(self) + g.db.commit() for c in self.options: body += f'
time.time() - self.created_utc > 20: ti = max(int((time.time() - self.created_utc)/60), 1) - maxupvotes = min(ti, 27) + maxupvotes = min(ti, 7) rand = random.randint(0, maxupvotes) if self.upvotes < rand: - amount = random.randint(0, 3) - self.views += amount*random.randint(3, 5) - self.upvotes += amount - g.db.add(self) - g.db.commit() + amount = random.randint(0, 1) + if amount == 1: + self.views += amount*random.randint(3, 5) + self.upvotes += amount + g.db.add(self) + g.db.commit() for c in self.options: body += f'
".join(guesses) @@ -9,7 +10,7 @@ def format_all(guesses, status, answer): class Wordle: def __init__(self, g): - self.word_list = ['tariq', 'sneed', 'drama', 'chuck', 'bussy', 'which', 'their', 'would', 'there', 'could', 'other', 'about', 'great', 'these', 'after', 'first', 'never', 'where', 'those', 'shall', 'being', 'might', 'every', 'think', 'under', 'found', 'still', 'while', 'again', 'place', 'young', 'years', 'three', 'right', 'house', 'whole', 'world', 'thing', 'night', 'going', 'heard', 'heart', 'among', 'asked', 'small', 'woman', 'whose', 'quite', 'words', 'given', 'taken', 'hands', 'until', 'since', 'light'] + self.word_list = environ.get('WORDLE').split(' ') self.command_word = "!wordle" self.db = g.db @@ -29,11 +30,6 @@ class Wordle: guesses = [] count = len(guesses) - if (guess.lower() == answer): - status = "won" - elif (count == 5): - status = "lost" - if (guess != None and len(guess) == 5 and status == "active"): result = ["πŸŸ₯"]*5 pos = 0 # letter position @@ -49,4 +45,8 @@ class Wordle: pos += 1 # add 1 to the letter position guesses.append("/".join(result)) + + if (guess.lower() == answer): status = "won" + elif (count == 5): status = "lost" + from_comment.wordle_result = format_all(guesses, status, answer) \ No newline at end of file diff --git a/schema.sql b/schema.sql index d98979a0ce..9d3fbfd846 100644 --- a/schema.sql +++ b/schema.sql @@ -300,8 +300,13 @@ CREATE TABLE public.comments ( ghost boolean, slots_result character varying(32), blackjack_result character varying(855), +<<<<<<< HEAD treasure_amount character varying(10), wordle_result character varying(97) +======= + wordle_result character varying(3000), + treasure_amount character varying(10) +>>>>>>> a8b07ed2052cb58cda182e2567efde8d9fdf4aca ); diff --git a/snappy_Drama.txt b/snappy_Drama.txt index ea40dd0191..36f889e92c 100644 --- a/snappy_Drama.txt +++ b/snappy_Drama.txt @@ -3417,4 +3417,8 @@ Stay freaky & respectful friends! πŸ˜ˆπŸ’πŸ½β€β™‚οΈ I've read it and to put it simply: I'm disgusted by some of the text. And especially when it was revealed that the alt-right "drama" website was involved in the research, my suspicions came true. The text is nothing but smelling coming from some pretentious intellectual dark web teenager fan-fiction writer. Unfortunately. {[para]} -I have over 40 videos up loaded of Japanese women pooping and having diarrhea in their pants or in the toilet! Email me for more!! \ No newline at end of file +I have over 40 videos up loaded of Japanese women pooping and having diarrhea in their pants or in the toilet! Email me for more!! +{[para]} +When my girlfriend finally asked what my more extreme opinions were a while back because she knew I harboured them, I finally went on a calm but well articulated rant about Jews and diversity for maybe an hour and a half, she just listened. Showed her a 25 minute documentary explaining in detail all the good Hitler did for Germany and why he was loved. Overall I spoke for about two hours on my belief in segregation, black crime stats, race and IQ differences, the ruling Jews who push everything, child abandonment by race, spousal abusive rates by race, my hate and disgust with LGBTQ culture and more not knowing if she would hate me and leave. + +Fast forward, she is insanely intoxicated with me, hints and outright says frequently she wants lots of kids with me, wants to embrace traditional roles, church, all of that. So I assume being a strong man firm in your beliefs and being able to explain those beliefs well and guide others makes women’s eggs ache \ No newline at end of file