mirror of
https://github.com/danbulant/ssps-bot
synced 2026-07-05 02:50:45 +00:00
vylepšení profilu
This commit is contained in:
parent
110cf40ebe
commit
93edf40ef6
1 changed files with 4 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ module.exports = class profil extends commando.Command {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: "profil",
|
name: "profil",
|
||||||
memberName: "profil",
|
memberName: "profil",
|
||||||
|
aliases: ["profile", "whoami", "whois"],
|
||||||
group: "ssps",
|
group: "ssps",
|
||||||
description: "Zobrazí profil uživatele",
|
description: "Zobrazí profil uživatele",
|
||||||
args: [{
|
args: [{
|
||||||
|
|
@ -61,7 +62,9 @@ module.exports = class profil extends commando.Command {
|
||||||
const student = await Student.findOne({
|
const student = await Student.findOne({
|
||||||
where: { personId: person.id }
|
where: { personId: person.id }
|
||||||
});
|
});
|
||||||
embed.addField("Třída", api.demap[student.class]);
|
embed.addField("Třída", api.demap[student.classId], true);
|
||||||
|
const groups = await student.getGroups();
|
||||||
|
embed.addField("Skupiny", groups.filter(t => t.abbrev !== "celá").map(t => t.name).join(", "), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return msg.say(embed);
|
return msg.say(embed);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue