fetching responses json
This commit is contained in:
parent
29098500e2
commit
be024389ba
20
generate
Executable file
20
generate
Executable file
@ -0,0 +1,20 @@
|
||||
#!/home/fname/Projects/OpenSource/python-mommy-venv/.venv/bin/python3
|
||||
import requests
|
||||
from pathlib import Path
|
||||
import json
|
||||
|
||||
|
||||
CARGO_MOMMY_DATA = "https://raw.githubusercontent.com/diamondburned/go-mommy/refs/heads/main/responses.json"
|
||||
MODULE_PATH = Path("python_mommy_venv")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("generating stuff")
|
||||
|
||||
res = requests.get(CARGO_MOMMY_DATA)
|
||||
if not res.ok:
|
||||
raise Exception(f"couldn't fetch {CARGO_MOMMY_DATA} ({res.status_code})")
|
||||
|
||||
print(f"writing {Path(MODULE_PATH, 'responses.json')}")
|
||||
with Path(MODULE_PATH, "responses.json").open("w") as f:
|
||||
json.dump(res.json(), f, indent=4)
|
@ -15,6 +15,7 @@ def development():
|
||||
s = sys.argv[1]
|
||||
|
||||
print(get_response(Situation(s)))
|
||||
|
||||
|
||||
def write_current_config():
|
||||
f = "python-mommy.toml"
|
||||
@ -46,6 +47,7 @@ print(get_response(Situation.POSITIVE if code == 0 else Situation.NEGATIVE))
|
||||
exit(code=code)
|
||||
"""
|
||||
|
||||
|
||||
PIP_HOOK = """# GENERATED BY MOMMY
|
||||
code = main()
|
||||
|
||||
@ -80,6 +82,7 @@ PIP_HOOK = """# GENERATED BY MOMMY
|
||||
|
||||
sys.exit(code)"""
|
||||
|
||||
|
||||
def mommify_pip(path: Path):
|
||||
text: str
|
||||
with path.open("r") as f:
|
||||
|
139
python_mommy_venv/responses.json
Normal file
139
python_mommy_venv/responses.json
Normal file
@ -0,0 +1,139 @@
|
||||
{
|
||||
"moods": {
|
||||
"chill": {
|
||||
"positive": [
|
||||
"*pets your head*",
|
||||
"*gives you scritches*",
|
||||
"you're such a smart cookie~",
|
||||
"that's a good {affectionate_term}~",
|
||||
"{role} thinks {pronoun} little {affectionate_term} earned a big hug~",
|
||||
"good {affectionate_term}~\n{role}'s so proud of you~",
|
||||
"aww, what a good {affectionate_term}~\n{role} knew you could do it~",
|
||||
"you did it~!",
|
||||
"{role} loves you~",
|
||||
"*gives you a sticker*",
|
||||
"*boops your nose*",
|
||||
"*wraps you in a big hug*",
|
||||
"well done~!\n{role} is so happy for you~",
|
||||
"what a good {affectionate_term} you are~",
|
||||
"that's {role}'s clever little {affectionate_term}~",
|
||||
"{role} loves {pronoun} cute little {affectionate_term}~"
|
||||
],
|
||||
"negative": [
|
||||
"{role} believes in you~",
|
||||
"don't forget to hydrate~",
|
||||
"aww, you'll get it next time~",
|
||||
"do you need {role}'s help~?",
|
||||
"{role} still loves you no matter what~",
|
||||
"oh no did {role}'s little {affectionate_term} make a big mess~?",
|
||||
"{role} knows {pronoun} little {affectionate_term} can do better~",
|
||||
"{role} still loves you~",
|
||||
"{role} thinks {pronoun} little {affectionate_term} is getting close~",
|
||||
"it's ok, {role}'s here for you~",
|
||||
"oh, darling, you're almost there~",
|
||||
"does {role}'s little {affectionate_term} need a bit of a break~?",
|
||||
"oops~! {role} loves you anyways~",
|
||||
"don't worry, {role} knows you can do it~"
|
||||
]
|
||||
},
|
||||
"thirsty": {
|
||||
"spiciness": "thirsty",
|
||||
"positive": [
|
||||
"*tugs your leash*\nthat's a VERY good {affectionate_term}~",
|
||||
"*runs {pronoun} fingers through your hair* good {affectionate_term}~ keep going~",
|
||||
"*smooches your forehead*\ngood job~",
|
||||
"*nibbles on your ear*\nthat's right~\nkeep going~",
|
||||
"*pats your butt*\nthat's a good {affectionate_term}~",
|
||||
"*drags {pronoun} nail along your cheek*\nsuch a good {affectionate_term}~",
|
||||
"*bites {pronoun} lip*\nmhmm~",
|
||||
"give {pronoun} a kiss~",
|
||||
"*heavy breathing against your neck*"
|
||||
],
|
||||
"negative": [
|
||||
"do you think you're going to get a reward from {role} like that~?",
|
||||
"*grabs your hair and pulls your head back*\nyou can do better than that for {role} can't you~?",
|
||||
"if you don't learn how to code better, {role} is going to put you in time-out~",
|
||||
"does {role} need to give {pronoun} little {affectionate_term} some special lessons~?",
|
||||
"you need to work harder to please {role}~",
|
||||
"gosh you must be flustered~",
|
||||
"are you just keysmashing now~?\ncute~",
|
||||
"is {role}'s little {affectionate_term} having trouble reaching the keyboard~?"
|
||||
]
|
||||
},
|
||||
"yikes": {
|
||||
"spiciness": "yikes",
|
||||
"positive": [
|
||||
"keep it up and {role} might let you cum you little {denigrating_term}~",
|
||||
"good {denigrating_term}~\nyou've earned five minutes with the buzzy wand~",
|
||||
"mmm~ come taste {role}'s {part}~",
|
||||
"*slides {pronoun} finger in your mouth*\nthat's a good little {denigrating_term}~",
|
||||
"you're so good with your fingers~\n{role} knows where {pronoun} {denigrating_term} should put them next~",
|
||||
"{role} is getting hot~",
|
||||
"that's a good {denigrating_term}~",
|
||||
"yes~\nyes~~\nyes~~~",
|
||||
"{role}'s going to keep {pronoun} good little {denigrating_term}~"
|
||||
],
|
||||
"negative": [
|
||||
"you filthy {denigrating_term}~\nyou made a mess, now clean it up~\nwith your tongue~",
|
||||
"*picks you up by the throat*\npathetic~",
|
||||
"*drags {pronoun} claws down your back*\ndo it again~",
|
||||
"*brandishes {pronoun} paddle*\ndon't make me use this~",
|
||||
"{denigrating_term}.\n{denigrating_term}~\n{denigrating_term}~~",
|
||||
"get on your knees and beg {role} for forgiveness you {denigrating_term}~",
|
||||
"{role} doesn't think {pronoun} little {denigrating_term} should have permission to wear clothes anymore~",
|
||||
"never forget you belong to {role}~",
|
||||
"does {role} need to put you in the {denigrating_term} wiggler~?",
|
||||
"{role} is starting to wonder if you should just give up and become {pronoun} breeding stock~"
|
||||
]
|
||||
}
|
||||
},
|
||||
"vars": {
|
||||
"mood": {
|
||||
"defaults": [
|
||||
"chill"
|
||||
]
|
||||
},
|
||||
"emote": {
|
||||
"defaults": [
|
||||
"\u2764\ufe0f",
|
||||
"\ud83d\udc96",
|
||||
"\ud83d\udc97",
|
||||
"\ud83d\udc93",
|
||||
"\ud83d\udc9e"
|
||||
]
|
||||
},
|
||||
"pronoun": {
|
||||
"defaults": [
|
||||
"her"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"defaults": [
|
||||
"mommy"
|
||||
]
|
||||
},
|
||||
"affectionate_term": {
|
||||
"defaults": [
|
||||
"girl"
|
||||
],
|
||||
"env_key": "LITTLE"
|
||||
},
|
||||
"denigrating_term": {
|
||||
"spiciness": "yikes",
|
||||
"defaults": [
|
||||
"slut",
|
||||
"toy",
|
||||
"pet",
|
||||
"pervert",
|
||||
"whore"
|
||||
],
|
||||
"env_key": "FUCKING"
|
||||
},
|
||||
"part": {
|
||||
"spiciness": "yikes",
|
||||
"defaults": [
|
||||
"milk"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user