Use globalName

This commit is contained in:
lilyissillyyy
2025-09-18 16:11:31 -04:00
parent 4a8aa67a72
commit 46e7a9e244
21 changed files with 48 additions and 36 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ module.exports = class ComplimentCommand extends Command {
}
run(msg, { user }) {
return msg.say(`${user.username}, ${compliments[Math.floor(Math.random() * compliments.length)]}`);
const compliment = compliments[Math.floor(Math.random() * compliments.length)];
return msg.say(`${user.globalName || user.username}, ${compliment}`);
}
};
+2 -1
View File
@@ -19,6 +19,7 @@ module.exports = class RoastCommand extends Command {
}
run(msg, { user }) {
return msg.say(`${user.username}, ${roasts[Math.floor(Math.random() * roasts.length)]}`);
const roast = roasts[Math.floor(Math.random() * roasts.length)];
return msg.say(`${user.globalName || user.username}, ${roast}`);
}
};