forked from Hri7566/mpp-server-dev2
List Users Done.
This commit is contained in:
parent
a1f303115f
commit
2332ec38f9
|
@ -60,17 +60,20 @@ Command.addCommand(
|
||||||
.join("\n- ")
|
.join("\n- ")
|
||||||
);
|
);
|
||||||
} else if (msg.args[1] == "users") {
|
} else if (msg.args[1] == "users") {
|
||||||
var users = getUsers();
|
var user = getUsers();
|
||||||
|
var users = "";
|
||||||
|
((await user).users).forEach(u => {
|
||||||
|
users += `\n- [${u.id}]: ${u.name}`
|
||||||
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
"Users: "+await (await users).count+"\n- " +
|
"Users: "+await (await user).count + users
|
||||||
(await users).users.forEach(async user => {
|
)
|
||||||
`\n- ${user.id}: ${user.name}`
|
} else {
|
||||||
})
|
return "list <channels, users>";
|
||||||
);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return "list <channels, users>";
|
return "list <channels, users>";
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue