From 93edf40ef6bdbff8f92ab30df86681238dea0312 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Sun, 24 Oct 2021 19:51:11 +0200 Subject: [PATCH] =?UTF-8?q?vylep=C5=A1en=C3=AD=20profilu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/ssps/profil.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/ssps/profil.js b/commands/ssps/profil.js index 59ba837..2687bad 100644 --- a/commands/ssps/profil.js +++ b/commands/ssps/profil.js @@ -13,6 +13,7 @@ module.exports = class profil extends commando.Command { super(client, { name: "profil", memberName: "profil", + aliases: ["profile", "whoami", "whois"], group: "ssps", description: "Zobrazí profil uživatele", args: [{ @@ -61,7 +62,9 @@ module.exports = class profil extends commando.Command { const student = await Student.findOne({ 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);