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
+3 -2
View File
@@ -29,13 +29,14 @@ module.exports = class ButtCommand extends Command {
run(msg, { user }) {
const authorUser = user.id === msg.author.id;
const displayName = user.globalName || user.username;
if (user.id === this.client.user.id) return msg.reply('Me? I think I have the best butt around!');
if (this.client.isOwner(user)) {
if (authorUser) return msg.reply('ur butt is the best, mother');
return msg.reply(`${user.username}'s butt is... Something, I'll say that much.`);
return msg.reply(`${displayName}'s butt is... Something, I'll say that much.`);
}
const random = MersenneTwister19937.seed(user.id);
const quality = integer(0, texts.length - 1)(random);
return msg.reply(`${authorUser ? 'ur' : `${user.username}'s`} butt is ${texts[quality]}`);
return msg.reply(`${authorUser ? 'ur' : `${displayName}'s`} butt is ${texts[quality]}`);
}
};