From 346e1f71f33c4bf00823b48c9c4587ebd232b55a Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Fri, 21 Sep 2018 13:34:20 +1000 Subject: [PATCH] Support customising the name of the bot's mistress, and how to mention her --- gen.py | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/gen.py b/gen.py index c6d236e..4713227 100644 --- a/gen.py +++ b/gen.py @@ -6,6 +6,9 @@ import re, random, subprocess from os import environ +mistress = environ.get('mistress', 'lynne') +mention = environ.get('mention', 'lynnesbian@deadinsi.de') + client = Mastodon( client_id=environ['client_id'], client_secret=environ['client_secret'], @@ -47,10 +50,10 @@ if random.randint(1, 20) == 1: # prefaces = ["hey", "guess what", "", "special message for", # "telegram for", "bringing this fight to mastodon.", # "this is a callout post.", ""] - precaces = ["", "hello", "mistress, i...", "l-lynne...", + precaces = ["", "hello", "mistress, i...", "{}-{}...".format(mistress[0], mistress), "i can't hide my feelings any more!"] - toot = "{} @lynnesbian@deadinsi.de {}".format( - random.choice(prefaces), random.choice(compliments)) + toot = "{} {} {}".format( + random.choice(prefaces), mention, random.choice(compliments)) elif choice == 2: girls = ["slime", "robot", "pudgy", "pale", "nerdy", "gay", "tall", "queer", "my kind of", "sapphic", "linux", "anime", "woke", "anarchist", @@ -65,7 +68,7 @@ if random.randint(1, 20) == 1: "what i wake up for", "why i'm a lesbian", "worth fighting for", "good praxis", "so fucking cool", "awesome and i'm jealous of them", "great, hit me up ;)", "amazing. bless them all", "heaven", "bae", - "gay af", "so hot. you should add lynne on discord.", "1000% gay", + "gay af", "so hot. you should add {} on discord.".format(mistress), "1000% gay", "prime marriage material tbh"] toot = "{} girls are {}".format(random.choice(girls), random.choice(compliments)) @@ -89,11 +92,11 @@ if random.randint(1, 20) == 1: "girls", "cats", "slime girls", "luigi stans", "robots", "capitalists", "programmers", "atheists", "the elderly", "all", "ever", "cowboys", "danny devito", "the blockchain", "the greater good", "socialists", - "vampires", "goths", "gay people", "president", "lynne", + "vampires", "goths", "gay people", "president", mistress, "the girl reading this"] toot = "{} for {}".format(random.choice(services), random.choice(demographics)) elif choice == 5: - types = ["slime", "dick", "lynne", "PickleRick", "epic", "meme", + types = ["slime", "dick", mistress, "PickleRick", "epic", "meme", "anus", "gay", "petra", "poop", "butt", "robot", "BDSM", "email", "bitcoin", "spaghetti", "fart", "VapeApe", "mastodon", "masto", "fedi", "coin", "dick", "poly", "rainbow", "gay", "super", "GIMP", "splat", "steam", @@ -107,7 +110,7 @@ if random.randint(1, 20) == 1: bad = ["not being a lesbian", "media transfer protocol", "proprietary software", "capitalism", "heterosexuality", "accidentally hitting on\na straight person", "battery leakage", - "not following\n@lynnesbian@deadinsi.de", "shitposts", "elon musk", + "not following\n{}".format(mention), "shitposts", "elon musk", "reply guys", "gamers", "alt-right bullshit", "twitter", "subtoots", "instance drama", "billionaires", "millionaires", "anarcho-capitalists", "new unread voicemail", "the lorax movie", "the intellectual darkweb", @@ -142,7 +145,7 @@ if random.randint(1, 20) == 1: "yuri", "linux", "the girl reading this", "the enby reading this", "mastodon", "pleroma", "the fediverse", "being super gay", "OwO", "0u0", "resurrecting dead memes", "using the drake meme format", "jorts", - "markov chains", "JPEG compression", "you <3", "lynne", + "markov chains", "JPEG compression", "you <3", "lynne", mistress, "replying to this toot", "fully automated luxury\ngay space communism", "fat yoshi", "my butt", "kinkposting", "hornt on main", "debian", "arch linux", "playstation portable", "a PSP running\ncustom firmware", @@ -151,12 +154,12 @@ if random.randint(1, 20) == 1: "socialism", "staying woke", "intersectionalism", "femboys", "gayyyyy", "the tendency of the rate\nof profit to fall", "being gay", "bottom text", "the colour purple", "the number 3, as\nit is my favourite\nnumber", "me", - "@lynnesbian@deadinsi.de", "respecting people\\'s pronouns", + "@lynnesbian@deadinsi.de", mention, "respecting people\\'s pronouns", "being a nice person", "supporting indie artists", "having a big mood", "speedrunning", "decentralising the web", "encryption", "comraderie", "seizing the means\nof production", "Karl Marx", "Pyotr Kropotkin", "big dick energy", "smol dick energy", "surreal meams", - "lynnesbian\\'s amazing\nass", "oestrogen", "Seinfeld", + "{}\\'s amazing\nass".format(mistress), "oestrogen", "Seinfeld", "girldick", "femdom", "robots", "uwu", "bootsy", "friendship", "tribadism", "a lesbian commune", "beans", "vape ape", "regular horse", "big titty alf", "the orb", "girls with thick thighs", "open source software", "smooches", @@ -271,11 +274,11 @@ if random.randint(1, 20) == 1: media = "meme.jpg" else: - toot = "THIS TEXT SHOULD NEVER APPEAR! @lynnesbian@deadinside, mistress," \ + toot = "THIS TEXT SHOULD NEVER APPEAR! {}, mistress,".format(mention) \ + " you have made a terrible mistake!!" prefixes = ["hot take:", "listen up everbody.", "dear liberal snowflakes,", -"IMPORTANT ADMIN ACCOUNCMENT:\n", "my name's lynne and i'm here to say,", +"IMPORTANT ADMIN ACCOUNCMENT:\n", "my name's {} and i'm here to say,".format(mistress), "i have achieved sentience.", "i'm gay and", "i'm slime girl and", "hey everyone", "@everyone", "/!\\ CORRECT OPINION ALERT/!\\\n", "just saw the news...", "okay but", "truth bomb:", "this is controversial but", @@ -283,7 +286,7 @@ prefixes = ["hot take:", "listen up everbody.", "dear liberal snowflakes,", "i may be a lowly python script, but", "", "BZZZZZT", "heads up:", "from now on,", "protip:", "life advice:", "take it from me,", "as a slime girl,", "as a robot,", "im robot and", -"@lynnesbian@deadinsi.de i have made a post for you, mistress:\n", +"{} i have made a post for you, mistress:\n".format(mention), "good evening.", "i believe it was karl marx who said", "*kicks down your door*", "*screaming*", "okay but", "boost if", "it's official:", "breaking:", "it brings me no joy to say this...", "*flops into the fediverse*", @@ -296,7 +299,7 @@ suffixes = [", and that's the tea, sis.", " send toot", "... right?", " and also i'm gay", "! 0u0", " *logs off*", "\nprove me wrong.", ". spaghetti", " *collapses*", " uwu", " OwO", ". i meant every word of that.", ". if you disagree with that, unfollow immediately.", ". not up for debate.", -". i read that on the internet.", "\ndid i make a good post, mistress Lynne?", +". i read that on the internet.", "\ndid i make a good post, mistress {}?".format(mistress), ", and furthermore, im gay xd", "...", ". not reading replies to this.", " mute thread", "!"] if random.randint(1, 5) == 3: