diff --git a/commands/analyze/dick.js b/commands/analyze/dick.js index b6a67de2..bd13e4e3 100644 --- a/commands/analyze/dick.js +++ b/commands/analyze/dick.js @@ -22,8 +22,9 @@ module.exports = class DickCommand extends Command { } run(msg, { user }) { - const random = new Random(Random.engines.mt19937().seed(user.id)); + const clientAuthor = user.id === this.client.user.id; + const random = new Random(Random.engines.mt19937().seed(clientAuthor ? msg.author.id : user.id)); const length = random.integer(0, 200); - return msg.reply(`8${'='.repeat(user.id === this.client.user.id ? length + 1 : length)}D`); + return msg.reply(`8${'='.repeat(clientAuthor ? length + 1 : length)}D`); } }; diff --git a/commands/analyze/ship.js b/commands/analyze/ship.js index 3961e6c0..2d57d8e6 100644 --- a/commands/analyze/ship.js +++ b/commands/analyze/ship.js @@ -29,7 +29,7 @@ module.exports = class ShipCommand extends Command { run(msg, { first, second }) { if (first.id === second.id) return msg.reply('Shipping someone with themselves would be pretty weird.'); const botText = first.id === this.client.user.id || second.id === this.client.user.id - ? '\nBut you\'re still rejected. Sorry.' + ? `\nBut ${first.id === msg.author.id || second.id === msg.author.id ? 'you\'re' : 'they\'re'} still rejected.` : ''; const random = new Random(Random.engines.mt19937().seed(Math.abs(first.id - second.id))); const level = random.integer(0, 100); diff --git a/package.json b/package.json index 0f376bdf..da50a510 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "98.0.1", + "version": "98.0.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {