Taka005
commited on
Commit
·
e0b07cc
1
Parent(s):
96fe673
完成
Browse files
main.py
CHANGED
@@ -250,21 +250,36 @@ def main():
|
|
250 |
content = request.args.get("content") or "Make it a Quote",
|
251 |
icon = request.args.get("icon") or "https://cdn.discordapp.com/embed/avatars/0.png"
|
252 |
|
253 |
-
res
|
254 |
if type == "color":
|
255 |
-
|
|
|
|
|
|
|
256 |
elif type == "reverse":
|
257 |
-
|
|
|
|
|
|
|
258 |
elif type == "reverseColor":
|
259 |
-
|
|
|
|
|
|
|
260 |
elif type == "white":
|
261 |
-
|
|
|
|
|
|
|
262 |
elif type == "reverseWhite":
|
263 |
-
|
|
|
|
|
|
|
264 |
else:
|
265 |
-
|
266 |
-
|
267 |
-
|
|
|
268 |
|
269 |
if __name__ == "__main__":
|
270 |
app.run(host="0.0.0.0", port=3000)
|
|
|
250 |
content = request.args.get("content") or "Make it a Quote",
|
251 |
icon = request.args.get("icon") or "https://cdn.discordapp.com/embed/avatars/0.png"
|
252 |
|
|
|
253 |
if type == "color":
|
254 |
+
return send_file(
|
255 |
+
colorMake(name[0], id[0], content, icon),
|
256 |
+
mimetype="image/png"
|
257 |
+
)
|
258 |
elif type == "reverse":
|
259 |
+
return send_file(
|
260 |
+
reverseMake(name[0], id[0], content, icon),
|
261 |
+
mimetype="image/png"
|
262 |
+
)
|
263 |
elif type == "reverseColor":
|
264 |
+
return send_file(
|
265 |
+
reverseColorMake(name[0], id[0], content, icon),
|
266 |
+
mimetype="image/png"
|
267 |
+
)
|
268 |
elif type == "white":
|
269 |
+
return send_file(
|
270 |
+
whiteMake(name[0], id[0], content, icon),
|
271 |
+
mimetype="image/png"
|
272 |
+
)
|
273 |
elif type == "reverseWhite":
|
274 |
+
return send_file(
|
275 |
+
reverseWhiteMake(name[0], id[0], content, icon),
|
276 |
+
mimetype="image/png"
|
277 |
+
)
|
278 |
else:
|
279 |
+
return send_file(
|
280 |
+
make(name[0], id[0], content, icon),
|
281 |
+
mimetype="image/png"
|
282 |
+
)
|
283 |
|
284 |
if __name__ == "__main__":
|
285 |
app.run(host="0.0.0.0", port=3000)
|