update Oauth discord & add good bye message

This commit is contained in:
Arthur Puechberty
2026-01-15 20:23:06 +01:00
parent 12fde58b93
commit 87e339c75b
6 changed files with 370 additions and 160 deletions
+18 -5
View File
@@ -1,12 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<title>Connexion Discord</title>
<title>LazyBot - Bot Discord</title>
</head>
<body>
<h1>Bienvenue !</h1>
<a href="/auth/discord">
<button>Se connecter avec Discord</button>
</a>
<nav>
<a href="/">Accueil</a>
<a href="/dashboard">Tableau de bord</a>
</nav>
<h1>LazyBot</h1>
<a id="invite-link" href="#">Ajouter à Discord</a>
</body>
<script>
fetch("/invite-bot")
.then(res => res.json())
.then(data => {
const link = document.getElementById("invite-link");
link.href = data.url; // met le lien dynamique
})
.catch(() => {
console.log("Impossible de récupérer le lien du bot.");
});
</script>
</html>