1tbfree commited on
Commit
d017636
·
verified ·
1 Parent(s): e458c40

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -0
index.js CHANGED
@@ -28,6 +28,9 @@ socket.on("chat message", (msg) => {
28
  if (msg.message.startsWith("/whoami")) {
29
  socket.emit("chat message", "I am the best bot.")
30
  };
 
 
 
31
  });
32
  socket.on("disconnect", () => {
33
  console.log("Disconnected from server");
 
28
  if (msg.message.startsWith("/whoami")) {
29
  socket.emit("chat message", "I am the best bot.")
30
  };
31
+ if (msg.message.startsWith("/shutdown")) {
32
+ process.exit(666);
33
+ };
34
  });
35
  socket.on("disconnect", () => {
36
  console.log("Disconnected from server");