Taka005 commited on
Commit
e0b07cc
·
1 Parent(s): 96fe673
Files changed (1) hide show
  1. main.py +24 -9
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
- res = colorMake(name, id, content, icon)
 
 
 
256
  elif type == "reverse":
257
- res = reverseMake(name, id, content, icon)
 
 
 
258
  elif type == "reverseColor":
259
- res = reverseColorMake(name, id, content, icon)
 
 
 
260
  elif type == "white":
261
- res = whiteMake(name, id, content, icon)
 
 
 
262
  elif type == "reverseWhite":
263
- res = reverseWhiteMake(name, id, content, icon)
 
 
 
264
  else:
265
- res = make(name, id, content, icon)
266
-
267
- return send_file(res, mimetype="image/png")
 
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)