Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondbroplayz authored Dec 12, 2023
1 parent c3cf48a commit bdd7e00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ <h2>🏆 Accomplishments</h2>
<script type="module" src="/main.js"></script>
<script>
var statusText = document.getElementById('statusText')
var apiUrl = 'https://status-api-f3ka.onrender.com/810226107248803881';
var apiUrl = 'https://api.lanyard.rest/v1/users/810226107248803881';
fetch(apiUrl).then(response => {
return response.json();
}).then(data => {
// No need to parse data again, as it's already parsed
statusText.innerHTML = `🚀 Welcome to my website! I'm currently ${data.presence}`;
statusText.innerHTML = `🚀 Welcome to my website! I'm currently ${data.data.discord_status}`;
console.log(data);
}).catch(err => {
// Do something for an error here
Expand Down

0 comments on commit bdd7e00

Please sign in to comment.