mirror of
https://github.com/arthur-pbty/discord-selfbot.git
synced 2026-06-11 15:56:02 +02:00
Create notif.js
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
const axios = require('axios');
|
||||||
|
|
||||||
|
function sendNotification(title, message, priority) {
|
||||||
|
const url = "http://90.120.61.81:81/message?token=AVU4LAnlFA._qZk";
|
||||||
|
const data = {
|
||||||
|
message: message,
|
||||||
|
title: title,
|
||||||
|
priority: priority
|
||||||
|
};
|
||||||
|
|
||||||
|
axios.post(url, data, {
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.then(response => {
|
||||||
|
console.log("Notification envoyée avec succès !", response.data);
|
||||||
|
})
|
||||||
|
.catch(error => {
|
||||||
|
console.error("Erreur lors de l'envoi de la notification :", error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = sendNotification;
|
||||||
Reference in New Issue
Block a user