This commit is contained in:
Dragon Fire
2020-05-30 18:32:52 -04:00
parent bec5d61d1d
commit 486a01bf4d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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));