diff --git a/index.js b/index.js
index 3944ad5..ded090a 100644
--- a/index.js
+++ b/index.js
@@ -79,6 +79,10 @@ io.on("connection", (client) => {
messagesHistory.shift();
}
+ } else if(data.message === "/prout") {
+ io.sockets.emit("fart");
+ log(`${client.denisFanNumber} : have farted`);
+
} else {
client.emit("warning");
log(`${client.denisFanNumber} : ${data.message} (INVALID)`);
diff --git a/src/fart.mp3 b/src/fart.mp3
new file mode 100644
index 0000000..c9fe667
Binary files /dev/null and b/src/fart.mp3 differ
diff --git a/src/index.html b/src/index.html
index 04f6d60..32b4603 100644
--- a/src/index.html
+++ b/src/index.html
@@ -73,6 +73,7 @@
+
diff --git a/src/script.js b/src/script.js
index 738f891..d3886ae 100644
--- a/src/script.js
+++ b/src/script.js
@@ -55,6 +55,10 @@ document.addEventListener("DOMContentLoaded", () => {
location.reload();
});
+ socket.on("fart", () => {
+ document.getElementById("fart").play();
+ })
+
socket.on("previous-messages", (data) => {
data.messages.forEach(message => {