From 33970454bbcbcbe1d98fcadd8e85207280b44bc2 Mon Sep 17 00:00:00 2001 From: lolcat Date: Sun, 3 Nov 2024 17:28:31 -0500 Subject: [PATCH] list --- client.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/client.js b/client.js index e585573..9375dce 100644 --- a/client.js +++ b/client.js @@ -1219,6 +1219,21 @@ deek.on("message", async function(msg, user){ send(msg, fortunes[Math.floor(Math.random() * fortunes.length)]); break; + case "list": + if(mc_bridge_enabled === false){ + + send(msg, "Minecraft bridge is disabled"); + break; + } + + send( + msg, + ">Players online on deekcraft:\n" + + (Object.keys(bot.players).filter(player => bot.players[player].ping !== undefined)) + .join("\n") + ); + break; + case "help": case "h": send( @@ -1235,6 +1250,7 @@ deek.on("message", async function(msg, user){ ".roll/.r => Because deekchat was too slow\n" + ".mumble/.m <[optional]ip:port> => check if lolcat died\n" + ".prop => check if the sun has exploded or smth\n" + + ".list => players online on deekcraft\n" + ".ping => spam deekchat" ); break;