mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 08:17:35 +02:00
LOVER_USER_ID
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
XIAO_TOKEN=
|
XIAO_TOKEN=
|
||||||
# Seperate OWNERS with a ,
|
# Seperate OWNERS with a ,
|
||||||
OWNERS=
|
OWNERS=
|
||||||
GIRLFRIEND_USER_ID=
|
LOVER_USER_ID=
|
||||||
XIAO_PREFIX=
|
XIAO_PREFIX=
|
||||||
INVITE=
|
INVITE=
|
||||||
XIAO_WEBHOOK_ID=
|
XIAO_WEBHOOK_ID=
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ The difficulty in getting all of these keys is why I recommend
|
|||||||
|
|
||||||
* `XIAO_TOKEN` can be obtained at the [Discord Developer Portal](https://discord.com/developers/applications/).
|
* `XIAO_TOKEN` can be obtained at the [Discord Developer Portal](https://discord.com/developers/applications/).
|
||||||
* `OWNERS` is a comma-seperated list of Discord User IDs.
|
* `OWNERS` is a comma-seperated list of Discord User IDs.
|
||||||
* `GIRLFRIEND_USER_ID` is a Discord User ID for your lover. It rigs commands like `coolness` and `cuteness`. Totally optional, loners (like me) can leave it out.
|
* `LOVER_USER_ID` is a Discord User ID for your lover. It rigs commands like `coolness` and `cuteness`. Totally optional, loners (like me) can leave it out.
|
||||||
* `XIAO_PREFIX` is the prefix you want the bot to have. Like `x;`.
|
* `XIAO_PREFIX` is the prefix you want the bot to have. Like `x;`.
|
||||||
* `INVITE` is an invite link to a Discord server. The whole thing, not just the code.
|
* `INVITE` is an invite link to a Discord server. The whole thing, not just the code.
|
||||||
* `XIAO_WEBHOOK_ID` is the ID of the webhook you want the `webhook` command to use.
|
* `XIAO_WEBHOOK_ID` is the ID of the webhook you want the `webhook` command to use.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
const Command = require('../../structures/Command');
|
const Command = require('../../structures/Command');
|
||||||
const { MersenneTwister19937, integer } = require('random-js');
|
const { MersenneTwister19937, integer } = require('random-js');
|
||||||
const texts = require('../../assets/json/coolness');
|
const texts = require('../../assets/json/coolness');
|
||||||
const { GIRLFRIEND_USER_ID } = process.env;
|
const { LOVER_USER_ID } = process.env;
|
||||||
|
|
||||||
module.exports = class CoolnessCommand extends Command {
|
module.exports = class CoolnessCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
@@ -29,7 +29,7 @@ module.exports = class CoolnessCommand extends Command {
|
|||||||
if (authorUser) return msg.reply('You\'re the best owner a bot could ask for! ❤');
|
if (authorUser) return msg.reply('You\'re the best owner a bot could ask for! ❤');
|
||||||
return msg.reply(`Don't tell them I said this but I think ${user.username} smells like a sack of diapers.`);
|
return msg.reply(`Don't tell them I said this but I think ${user.username} smells like a sack of diapers.`);
|
||||||
}
|
}
|
||||||
if (user.id === GIRLFRIEND_USER_ID) return msg.reply(`${user.username} is by far the coolest person ever! ❤`);
|
if (user.id === LOVER_USER_ID) return msg.reply(`${user.username} is by far the coolest person ever! ❤`);
|
||||||
const random = MersenneTwister19937.seed(user.id);
|
const random = MersenneTwister19937.seed(user.id);
|
||||||
const coolness = integer(0, texts.length - 1)(random);
|
const coolness = integer(0, texts.length - 1)(random);
|
||||||
return msg.reply(`${authorUser ? 'You are' : `${user.username} is`} ${texts[coolness]}`);
|
return msg.reply(`${authorUser ? 'You are' : `${user.username} is`} ${texts[coolness]}`);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
const Command = require('../../structures/Command');
|
const Command = require('../../structures/Command');
|
||||||
const { MersenneTwister19937, integer } = require('random-js');
|
const { MersenneTwister19937, integer } = require('random-js');
|
||||||
const texts = require('../../assets/json/cuteness');
|
const texts = require('../../assets/json/cuteness');
|
||||||
const { GIRLFRIEND_USER_ID } = process.env;
|
const { LOVER_USER_ID } = process.env;
|
||||||
|
|
||||||
module.exports = class CutenessCommand extends Command {
|
module.exports = class CutenessCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
@@ -36,7 +36,7 @@ module.exports = class CutenessCommand extends Command {
|
|||||||
if (authorUser) return msg.reply('You\'re the most adorable little cutie I know! ❤');
|
if (authorUser) return msg.reply('You\'re the most adorable little cutie I know! ❤');
|
||||||
return msg.reply(`${user.username} is ugly. Like, not cute at all.`);
|
return msg.reply(`${user.username} is ugly. Like, not cute at all.`);
|
||||||
}
|
}
|
||||||
if (user.id === GIRLFRIEND_USER_ID) return msg.reply(`${user.username} is by far the cutest person ever! ❤`);
|
if (user.id === LOVER_USER_ID) return msg.reply(`${user.username} is by far the cutest person ever! ❤`);
|
||||||
const random = MersenneTwister19937.seed(user.id);
|
const random = MersenneTwister19937.seed(user.id);
|
||||||
const cuteness = integer(0, texts.length - 1)(random);
|
const cuteness = integer(0, texts.length - 1)(random);
|
||||||
return msg.reply(`${authorUser ? 'You are' : `${user.username} is`} ${texts[cuteness]}`);
|
return msg.reply(`${authorUser ? 'You are' : `${user.username} is`} ${texts[cuteness]}`);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const { createCanvas, loadImage } = require('canvas');
|
|||||||
const request = require('node-superfetch');
|
const request = require('node-superfetch');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { percentColor } = require('../../util/Util');
|
const { percentColor } = require('../../util/Util');
|
||||||
const { GIRLFRIEND_USER_ID } = process.env;
|
const { LOVER_USER_ID } = process.env;
|
||||||
const percentColors = [
|
const percentColors = [
|
||||||
{ pct: 0.0, color: { r: 0, g: 0, b: 255 } },
|
{ pct: 0.0, color: { r: 0, g: 0, b: 255 } },
|
||||||
{ pct: 0.5, color: { r: 0, g: 255 / 2, b: 255 / 2 } },
|
{ pct: 0.5, color: { r: 0, g: 255 / 2, b: 255 / 2 } },
|
||||||
@@ -56,7 +56,7 @@ module.exports = class FriendshipCommand extends Command {
|
|||||||
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;
|
||||||
const botUser = first.id === this.client.user.id || second.id === this.client.user.id;
|
const botUser = first.id === this.client.user.id || second.id === this.client.user.id;
|
||||||
const girlfriendUser = first.id === GIRLFRIEND_USER_ID || second.id === GIRLFRIEND_USER_ID;
|
const girlfriendUser = first.id === LOVER_USER_ID || second.id === LOVER_USER_ID;
|
||||||
if (owner && botUser) {
|
if (owner && botUser) {
|
||||||
if (authorUser) level = 100;
|
if (authorUser) level = 100;
|
||||||
else level = 0;
|
else level = 0;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ const { oneLine } = require('common-tags');
|
|||||||
const { MersenneTwister19937, integer } = require('random-js');
|
const { MersenneTwister19937, integer } = require('random-js');
|
||||||
const genders = ['male', 'female'];
|
const genders = ['male', 'female'];
|
||||||
const { eyeColors, hairColors, hairStyles, extras } = require('../../assets/json/guess-looks');
|
const { eyeColors, hairColors, hairStyles, extras } = require('../../assets/json/guess-looks');
|
||||||
const { GIRLFRIEND_USER_ID } = process.env;
|
const { LOVER_USER_ID } = process.env;
|
||||||
|
|
||||||
module.exports = class GuessLooksCommand extends Command {
|
module.exports = class GuessLooksCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
@@ -31,7 +31,7 @@ module.exports = class GuessLooksCommand extends Command {
|
|||||||
if (authorUser) return msg.reply('You look amazing as always! ❤');
|
if (authorUser) return msg.reply('You look amazing as always! ❤');
|
||||||
return msg.reply(`${user.username} looks like a monkey, and smells like one too.`);
|
return msg.reply(`${user.username} looks like a monkey, and smells like one too.`);
|
||||||
}
|
}
|
||||||
if (user.id === GIRLFRIEND_USER_ID) {
|
if (user.id === LOVER_USER_ID) {
|
||||||
return msg.reply(`Know what perfection looks like? That's what ${user.username} looks like. ❤`);
|
return msg.reply(`Know what perfection looks like? That's what ${user.username} looks like. ❤`);
|
||||||
}
|
}
|
||||||
const random = MersenneTwister19937.seed(user.id);
|
const random = MersenneTwister19937.seed(user.id);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const { createCanvas, loadImage } = require('canvas');
|
|||||||
const request = require('node-superfetch');
|
const request = require('node-superfetch');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { percentColor } = require('../../util/Util');
|
const { percentColor } = require('../../util/Util');
|
||||||
const { GIRLFRIEND_USER_ID } = process.env;
|
const { LOVER_USER_ID } = process.env;
|
||||||
const percentColors = [
|
const percentColors = [
|
||||||
{ pct: 0.0, color: { r: 0, g: 0, b: 255 } },
|
{ pct: 0.0, color: { r: 0, g: 0, b: 255 } },
|
||||||
{ pct: 0.5, color: { r: 255 / 2, g: 0, b: 255 / 2 } },
|
{ pct: 0.5, color: { r: 255 / 2, g: 0, b: 255 / 2 } },
|
||||||
@@ -56,7 +56,7 @@ module.exports = class ShipCommand extends Command {
|
|||||||
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;
|
||||||
const botUser = first.id === this.client.user.id || second.id === this.client.user.id;
|
const botUser = first.id === this.client.user.id || second.id === this.client.user.id;
|
||||||
const girlfriendUser = first.id === GIRLFRIEND_USER_ID || second.id === GIRLFRIEND_USER_ID;
|
const girlfriendUser = first.id === LOVER_USER_ID || second.id === LOVER_USER_ID;
|
||||||
if (owner && botUser) {
|
if (owner && botUser) {
|
||||||
level = 0;
|
level = 0;
|
||||||
} else if (self) {
|
} else if (self) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
const Command = require('../../structures/Command');
|
const Command = require('../../structures/Command');
|
||||||
const { MersenneTwister19937, bool } = require('random-js');
|
const { MersenneTwister19937, bool } = require('random-js');
|
||||||
const { GIRLFRIEND_USER_ID } = process.env;
|
const { LOVER_USER_ID } = process.env;
|
||||||
|
|
||||||
module.exports = class SmashOrPassCommand extends Command {
|
module.exports = class SmashOrPassCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
@@ -28,7 +28,7 @@ module.exports = class SmashOrPassCommand extends Command {
|
|||||||
return msg.reply('I sure hope no one is dumb enough to smash that... Thing.');
|
return msg.reply('I sure hope no one is dumb enough to smash that... Thing.');
|
||||||
}
|
}
|
||||||
const random = MersenneTwister19937.seed(user.id);
|
const random = MersenneTwister19937.seed(user.id);
|
||||||
const smashOrPass = user.id === GIRLFRIEND_USER_ID || bool()(random);
|
const smashOrPass = user.id === LOVER_USER_ID || bool()(random);
|
||||||
return msg.reply(smashOrPass ? 'Smash, I\'d definitely smash.' : 'Hard pass. Yuck.');
|
return msg.reply(smashOrPass ? 'Smash, I\'d definitely smash.' : 'Hard pass. Yuck.');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ const { MersenneTwister19937, integer } = require('random-js');
|
|||||||
const { createCanvas, loadImage } = require('canvas');
|
const { createCanvas, loadImage } = require('canvas');
|
||||||
const request = require('node-superfetch');
|
const request = require('node-superfetch');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { GIRLFRIEND_USER_ID } = process.env;
|
const { LOVER_USER_ID } = process.env;
|
||||||
const thoughts = require('../../assets/json/think-of');
|
const thoughts = require('../../assets/json/think-of');
|
||||||
|
|
||||||
module.exports = class ThinkOfCommand extends Command {
|
module.exports = class ThinkOfCommand extends Command {
|
||||||
@@ -50,7 +50,7 @@ module.exports = class ThinkOfCommand extends Command {
|
|||||||
const self = first.id === second.id;
|
const self = first.id === second.id;
|
||||||
const owner = this.client.isOwner(first) || this.client.isOwner(second);
|
const owner = this.client.isOwner(first) || this.client.isOwner(second);
|
||||||
const botUser = first.id === this.client.user.id || second.id === this.client.user.id;
|
const botUser = first.id === this.client.user.id || second.id === this.client.user.id;
|
||||||
const girlfriendUser = first.id === GIRLFRIEND_USER_ID || second.id === GIRLFRIEND_USER_ID;
|
const girlfriendUser = first.id === LOVER_USER_ID || second.id === LOVER_USER_ID;
|
||||||
if (owner && botUser) {
|
if (owner && botUser) {
|
||||||
thought = thoughts[8];
|
thought = thoughts[8];
|
||||||
} else if (self) {
|
} else if (self) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
const Command = require('../../structures/Command');
|
const Command = require('../../structures/Command');
|
||||||
const { MersenneTwister19937, integer } = require('random-js');
|
const { MersenneTwister19937, integer } = require('random-js');
|
||||||
const { formatNumber } = require('../../util/Util');
|
const { formatNumber } = require('../../util/Util');
|
||||||
const { GIRLFRIEND_USER_ID } = process.env;
|
const { LOVER_USER_ID } = process.env;
|
||||||
|
|
||||||
module.exports = class WorthCommand extends Command {
|
module.exports = class WorthCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
@@ -36,7 +36,7 @@ module.exports = class WorthCommand extends Command {
|
|||||||
if (authorUser) return msg.reply('Infinity, you amazing owner! ❤');
|
if (authorUser) return msg.reply('Infinity, you amazing owner! ❤');
|
||||||
return msg.reply(`${user.username}, as in my owner? Worthless. Absolutely worthless.`);
|
return msg.reply(`${user.username}, as in my owner? Worthless. Absolutely worthless.`);
|
||||||
}
|
}
|
||||||
if (user.id === GIRLFRIEND_USER_ID) {
|
if (user.id === LOVER_USER_ID) {
|
||||||
return msg.reply(`${user.username} is worth more than anyone else on this Earth! ❤`);
|
return msg.reply(`${user.username} is worth more than anyone else on this Earth! ❤`);
|
||||||
}
|
}
|
||||||
const random = MersenneTwister19937.seed(user.id);
|
const random = MersenneTwister19937.seed(user.id);
|
||||||
|
|||||||
Reference in New Issue
Block a user