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;