From e1ddf42c6782c73d51dd27556a1a0cf39519b5d0 Mon Sep 17 00:00:00 2001
From: SofianeLasri <alasri250@gmail.com>
Date: Wed, 6 Apr 2022 11:17:47 +0200
Subject: [PATCH] added profil pic for SL-Craft

---
 index.js | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/index.js b/index.js
index f6f4593..41d7e44 100644
--- a/index.js
+++ b/index.js
@@ -632,11 +632,19 @@ async function createMcChatWebhook() {
 }
 
 function sendMessageFromMcChat(username, message) {
-    mcChatWebhook.send({
-        content: message,
-        username: username,
-        avatarURL: 'https://live.mc.sl-projects.com/tiles/faces/32x32/' + username + '.png',
-    });
+    if(username == "SL-Craft"){
+        mcChatWebhook.send({
+            content: message,
+            username: username,
+            avatarURL: 'https://live.mc.sl-projects.com/tiles/faces/32x32/' + username + '.png',
+        });
+    }else{
+        mcChatWebhook.send({
+            content: message,
+            username: username,
+            avatarURL: 'https://sl-craft.fr/data/images/logo/short-color.png',
+        });
+    }
 }
 
 
-- 
GitLab