mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 00:08:06 +02:00
Fix
This commit is contained in:
@@ -55,7 +55,7 @@ module.exports = class FriendshipCommand extends Command {
|
|||||||
let level;
|
let level;
|
||||||
const owner = this.client.isOwner(first) || this.client.isOwner(second);
|
const owner = this.client.isOwner(first) || this.client.isOwner(second);
|
||||||
const authorUser = first.id === msg.author.id || second.id === msg.author.id;
|
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;
|
if (authorUser) level = 100;
|
||||||
else level = 0;
|
else level = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ module.exports = class ShipCommand extends Command {
|
|||||||
let level;
|
let level;
|
||||||
const owner = this.client.isOwner(first) || this.client.isOwner(second);
|
const owner = this.client.isOwner(first) || this.client.isOwner(second);
|
||||||
const authorUser = first.id === msg.author.id || second.id === msg.author.id;
|
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;
|
level = 0;
|
||||||
} else {
|
} else {
|
||||||
const calculated = Math.abs(Number.parseInt(BigInt(first.id) - BigInt(second.id), 10));
|
const calculated = Math.abs(Number.parseInt(BigInt(first.id) - BigInt(second.id), 10));
|
||||||
|
|||||||
Reference in New Issue
Block a user