Alexander Vornam 3 роки тому
батько
коміт
29b6adfb71
31 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      index.js
  2. BIN
      www/img/ava/random/229ab39df96dbd32acbe388a02006086.png
  3. BIN
      www/img/ava/random/2df9a17109d5eb555b2bcf1861e44757.png
  4. BIN
      www/img/ava/random/315def5d41146b5b0a491751a96deab6.png
  5. BIN
      www/img/ava/random/40-407076_-img-kid-goku-clipart.png
  6. BIN
      www/img/ava/random/5A9B3D07-0887-4D9C-9A5A-214D1A569543.png
  7. BIN
      www/img/ava/random/BaseGoten.png
  8. BIN
      www/img/ava/random/Bills.png
  9. BIN
      www/img/ava/random/Broly_by_hirus4drawing-dchqn1e.png
  10. BIN
      www/img/ava/random/C17.png
  11. BIN
      www/img/ava/random/C18.png
  12. BIN
      www/img/ava/random/Chiaotzu_alt_outfit.png
  13. BIN
      www/img/ava/random/Gohan2.png
  14. BIN
      www/img/ava/random/MrPopo-2.png
  15. BIN
      www/img/ava/random/Tien.png
  16. BIN
      www/img/ava/random/Videl.png
  17. BIN
      www/img/ava/random/Whis_Broly.png
  18. BIN
      www/img/ava/random/c041a7ecc4f05901ac0b9c1be2be4ba5.png
  19. BIN
      www/img/ava/random/card_1016510_character.png
  20. BIN
      www/img/ava/random/ccee1253438ec06da532a8a2b0ae7b33.png
  21. BIN
      www/img/ava/random/dbli5i3-2a280762-9e4d-4978-8841-a8f0925d838d.png
  22. BIN
      www/img/ava/random/dcmv06o-7c0557cf-dcd0-44af-aa64-6e02a676dfcd.png
  23. BIN
      www/img/ava/random/ddfo6r9-7b89b38c-65ce-48cb-9e4b-64e4a0ffe7be.png
  24. BIN
      www/img/ava/random/ddh10sf-62af281c-9e88-4fda-b076-caf0123a1f28.png
  25. BIN
      www/img/ava/random/ddomvxj-17fe94c8-42f4-466c-aacc-6e19ddb1697a.png
  26. BIN
      www/img/ava/random/ddvhtty-d5c8ee7d-544e-4f0e-b61a-b608e9865145.png
  27. BIN
      www/img/ava/random/goku__namek_saga__ssj___1_by_ssjrose890_de5wfsk-fullview.png
  28. BIN
      www/img/ava/random/goku__super_saiyan_blue__shintani_palette_by_thetabbyneko_dcrvg6p-fullview.png
  29. BIN
      www/img/ava/random/goku_black_super_saiyan_rose_by_chronofz_dbc5q4k-fullview.png
  30. BIN
      www/img/ava/random/goku_ssj4_by_naironkr_dablmww-fullview.png
  31. BIN
      www/img/ava/random/kid_buu_render__dbz_kakarot__by_maxiuchiha22_ddomwm1-fullview.png

+ 1 - 1
index.js

@@ -51,7 +51,7 @@ app.get('/img/ava/:username', (req, res) => {
     if (fs.existsSync(__dirname + '/www/img/ava/' + req.params.username + '.png')) {
         file = __dirname + '/www/img/ava/' + req.params.username + '.png';
     } else {
-        const files = fs.readdirSync(__dirname + '/www/img/ava/random/');
+        const files = fs.readdirSync(__dirname + '/www/img/ava/random/').filter((f) => f.toLowerCase().endsWith('.png'));
 
         const seededRandom = seedrandom(req.params.username)();
         const randomFile = files[Math.floor(seededRandom * files.length)];

BIN
www/img/ava/random/229ab39df96dbd32acbe388a02006086.png


BIN
www/img/ava/random/2df9a17109d5eb555b2bcf1861e44757.png


BIN
www/img/ava/random/315def5d41146b5b0a491751a96deab6.png


BIN
www/img/ava/random/40-407076_-img-kid-goku-clipart.png


BIN
www/img/ava/random/5A9B3D07-0887-4D9C-9A5A-214D1A569543.png


BIN
www/img/ava/random/BaseGoten.png


BIN
www/img/ava/random/Bills.png


BIN
www/img/ava/random/Broly_by_hirus4drawing-dchqn1e.png


BIN
www/img/ava/random/C17.png


BIN
www/img/ava/random/C18.png


BIN
www/img/ava/random/Chiaotzu_alt_outfit.png


BIN
www/img/ava/random/Gohan2.png


BIN
www/img/ava/random/MrPopo-2.png


BIN
www/img/ava/random/Tien.png


BIN
www/img/ava/random/Videl.png


BIN
www/img/ava/random/Whis_Broly.png


BIN
www/img/ava/random/c041a7ecc4f05901ac0b9c1be2be4ba5.png


BIN
www/img/ava/random/card_1016510_character.png


BIN
www/img/ava/random/ccee1253438ec06da532a8a2b0ae7b33.png


BIN
www/img/ava/random/dbli5i3-2a280762-9e4d-4978-8841-a8f0925d838d.png


BIN
www/img/ava/random/dcmv06o-7c0557cf-dcd0-44af-aa64-6e02a676dfcd.png


BIN
www/img/ava/random/ddfo6r9-7b89b38c-65ce-48cb-9e4b-64e4a0ffe7be.png


BIN
www/img/ava/random/ddh10sf-62af281c-9e88-4fda-b076-caf0123a1f28.png


BIN
www/img/ava/random/ddomvxj-17fe94c8-42f4-466c-aacc-6e19ddb1697a.png


BIN
www/img/ava/random/ddvhtty-d5c8ee7d-544e-4f0e-b61a-b608e9865145.png


BIN
www/img/ava/random/goku__namek_saga__ssj___1_by_ssjrose890_de5wfsk-fullview.png


BIN
www/img/ava/random/goku__super_saiyan_blue__shintani_palette_by_thetabbyneko_dcrvg6p-fullview.png


BIN
www/img/ava/random/goku_black_super_saiyan_rose_by_chronofz_dbc5q4k-fullview.png


BIN
www/img/ava/random/goku_ssj4_by_naironkr_dablmww-fullview.png


BIN
www/img/ava/random/kid_buu_render__dbz_kakarot__by_maxiuchiha22_ddomwm1-fullview.png