Skip to content
Snippets Groups Projects
Commit e8e27671 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

client. ?

parent df20b028
No related branches found
No related tags found
No related merge requests found
......@@ -461,7 +461,7 @@ function verifyMcChatWebhook(){
console.log("['" + 'INFO'.yellow + "] Le Webhook du serveur MC est déjà configuré.");
let mcChatWebhookToken = botSettings.findOne({ where: { name: "mcChatWebhookToken" } });
if(mcChatWebhookToken){
mcChatWebhook = new WebhookClient({ id: webhook.id, token: webhook.token });
mcChatWebhook = new client.WebhookClient({ id: webhook.id, token: webhook.token });
}else{
console.log("['" + 'ERREUR'.brightRed + "] Impossible de trouver le token du webhook dans la base de donnée.");
createMcChatWebhook();
......@@ -485,7 +485,7 @@ function createMcChatWebhook(){
name: "mcChatWebhookToken",
value: webhook.token
});
mcChatWebhook = new WebhookClient({ id: webhook.id, token: webhook.token });
mcChatWebhook = new client.WebhookClient({ id: webhook.id, token: webhook.token });
console.log("['" + 'INFO'.yellow + "] Le Webhook du serveur MC a été configuré avec succès.");
})
.catch(console.error);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment