all's People
all's Issues
Discord webhook send
<html>
<head>
<meta charset="UTF-8">
<title>Envoi de message Discord</title>
</head>
<body>
<h1>Envoi de message Discord</h1>
<h2>API hébergé par Kronalight V4</h2>
<label for="message">Message:</label>
<input type="text" id="message" name="message"><br><br>
<button onclick="sendDiscordMessage()">Envoyer</button>
<script>
const webhookURL = 'https://discord.com/api/webhooks/1099664304950759466/poPTrifGk0qFSrGSdWJ4MhM6FcLn3rW6eAz7iaC7xeJT7nYTDdrIFhKzC0q8vDaveqvp'; // Remplacer WEBHOOK_URL_HERE par l'URL de votre webhook
const sendDiscordMessage = () => {
const message = document.getElementById('message').value;
axios.post(webhookURL, {
content: message
})
.then(response => {
console.log(`Message sent: ${message}`);
})
.catch(error => {
console.error(`Error sending message: ${error}`);
});
}
// Fonction pour envoyer un message de confirmation dans Discord
const sendConfirmationMessage = () => {
const message = 'Connexion établie avec succès !';
console.log('Kronalight V4.exe')
axios.post(webhookURL, {
content: message
})
.then(response => {
console.log(`Confirmation message sent: ${message}`);
})
.catch(error => {
console.error(`Error sending confirmation message: ${error}`);
});
}
// Appel de la fonction d'envoi de message de confirmation lors du chargement de la page
window.onload = sendConfirmationMessage;
</script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</body>
</html>```
Teste
;-;
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.