mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user