list
This commit is contained in:
parent
7f01482a6e
commit
33970454bb
16
client.js
16
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;
|
||||
|
|
Loading…
Reference in New Issue