1
0
mirror of https://gitlab.com/2-chainz/2-chainz-rest.git synced 2025-08-03 12:01:28 +00:00

changed endpoint to /quote

This commit is contained in:
2020-03-03 20:05:40 -07:00
parent a94cdfeb44
commit ccd6a43b49
4 changed files with 2 additions and 1 deletions

10
quote/__init__.py Normal file
View File

@@ -0,0 +1,10 @@
import logging
import json
import azure.functions as func
import random
from . import quotes
def main(req: func.HttpRequest) -> func.HttpResponse:
logging.info("Python HTTP trigger function processed a request.")
return func.HttpResponse(json.dumps({"message": random.choice(quotes.quotes)}))

20
quote/function.json Normal file
View File

@@ -0,0 +1,20 @@
{
"scriptFile": "__init__.py",
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": [
"get",
"post"
]
},
{
"type": "http",
"direction": "out",
"name": "$return"
}
]
}

31
quote/quotes.py Normal file
View File

@@ -0,0 +1,31 @@
quotes = [
"My side chick got pregnant by her main dude and i'm offended.",
"I kiss your lady, eat her pussy, then kiss the baby.",
"Left hand on that steering wheel, right hand on that pussy!",
"For my birthday I threw me a surprise party!",
"She got a big booty so I call her big booty",
"My girl got a big purse with a purse in it, and her pussy so clean, I can go to church in it!",
"Beat the pussy up, I need riot gear.",
"Gas in a Ziplock, now thats loud and clear.",
"My wrist deserve a shout out, 'I'm like what up wrist?' / My stove deserve a shout out, 'I'm like what up stove?'",
"I'm in the kitchen. Yams errrrrwhere.",
"I encourage everyone to pay attention to the issues that matter to you, from jobs and the economy, to education and our schools, to criminal justice reform. Whatever it is that you care about, make sure you use your voice.",
"If you a chicken head, go somewhere and lay some eggs",
"Chain hang to my ding-a-ling, chain hang, chain hang to my ding-a-ling",
"I tried to get a tan but I'm black already.",
"Then I put a fat rabbit on a Craftmatic!",
"Yeah, I love them strippers",
"If I wasn't rapping I'd be trapping.",
"Started from the trap, now I rap",
"Im so high I can sing to a chandelier / My flow a glass of Ace of Spade and yours a can of beer.",
"I look you right in your face, sing to your bitch like I'm Drake!",
"Ass so big, I told her to look back at it!",
"Drunk and high at the same time. / Drinking champagne on an airplane!",
"Wood grain, chestnut / Titty fuck, chest nut",
"Horsepower, horsepower, all this Polo on, I got horsepower",
"If I die, bury me inside the Louis store",
"GI-VEN-CHY, nigga God Bless you.",
"My favorite dish is turkey lasagna / Even my pajamas designer.",
"Walked in, ill nigga alert! ill nigga alert!",
"Like fuck your baby daddy, his daddy should've worn a condom",
]