mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 22:34:46 +02:00
Special reply for the user too
This commit is contained in:
@@ -19,7 +19,8 @@ module.exports = class RandomUserCommand extends Command {
|
|||||||
const members = [this.client.user, msg.channel.recipient];
|
const members = [this.client.user, msg.channel.recipient];
|
||||||
member = members[Math.floor(Math.random() * members.length)];
|
member = members[Math.floor(Math.random() * members.length)];
|
||||||
}
|
}
|
||||||
if (member.id === this.client.user.id) return msg.say('I choose myself!');
|
if (member.id === this.client.user.id) return msg.reply('I choose myself!');
|
||||||
return msg.say(`I choose ${member.tag}!`);
|
if (member.id === msg.author.id) return msg.reply('I choose you!');
|
||||||
|
return msg.reply(`I choose ${member.tag}!`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user