From 86a62cd8b46c8d78cd47e9ae39d86b78c59ca1ae Mon Sep 17 00:00:00 2001
From: Anson <anson@ansonbiggs.com>
Date: Mon, 20 Apr 2020 22:43:20 -0700
Subject: [PATCH] quote now pulls an alias aswell

---
 index.html | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/index.html b/index.html
index 83789e2..274e364 100644
--- a/index.html
+++ b/index.html
@@ -73,7 +73,7 @@
       <section>
         <blockquote>
           <span id="quote"></span>
-          <footer><i>- 2 Chainz</i></footer>
+          <footer><i id="alias">- 2 Chainz</i></footer>
         </blockquote>
       </section>
       <p>
@@ -250,6 +250,12 @@
               "tweet"
             ).href = `https://twitter.com/intent/tweet?text=${tweet}`;
           });
+
+        fetch("https://api.chainz.rest/alias", { method: "GET" })
+          .then((resp) => resp.json())
+          .then(function (data) {
+            document.getElementById("alias").innerHTML = "- " + data.alias;
+          });
       }
     </script>
     <script src="https://unpkg.com/ionicons@5.0.0/dist/ionicons.js"></script>