From 486a01bf4de4fa684551a23942567ffab03bf4e2 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 30 May 2020 18:32:52 -0400 Subject: [PATCH] Fix --- commands/random-seed/friendship.js | 2 +- commands/random-seed/ship.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/random-seed/friendship.js b/commands/random-seed/friendship.js index b7b0a140..ecd83b21 100644 --- a/commands/random-seed/friendship.js +++ b/commands/random-seed/friendship.js @@ -55,7 +55,7 @@ module.exports = class FriendshipCommand extends Command { let level; const owner = this.client.isOwner(first) || this.client.isOwner(second); const authorUser = first.id === msg.author.id || second.id === msg.author.id; - if (owner) { + if (owner && (first.id === this.client.user.id || second.id === this.client.user.id)) { if (authorUser) level = 100; else level = 0; } else { diff --git a/commands/random-seed/ship.js b/commands/random-seed/ship.js index bbcde93b..4bf7188f 100644 --- a/commands/random-seed/ship.js +++ b/commands/random-seed/ship.js @@ -55,7 +55,7 @@ module.exports = class ShipCommand extends Command { let level; const owner = this.client.isOwner(first) || this.client.isOwner(second); const authorUser = first.id === msg.author.id || second.id === msg.author.id; - if (owner) { + if (owner && (first.id === this.client.user.id || second.id === this.client.user.id)) { level = 0; } else { const calculated = Math.abs(Number.parseInt(BigInt(first.id) - BigInt(second.id), 10));