LOVER_USER_ID

This commit is contained in:
Dragon Fire
2021-03-02 17:27:25 -05:00
parent 49003aa33a
commit 1f987befa6
10 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
XIAO_TOKEN=
# Seperate OWNERS with a ,
OWNERS=
GIRLFRIEND_USER_ID=
LOVER_USER_ID=
XIAO_PREFIX=
INVITE=
XIAO_WEBHOOK_ID=
+1 -1
View File
@@ -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/).
* `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;`.
* `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.
+2 -2
View File
@@ -1,7 +1,7 @@
const Command = require('../../structures/Command');
const { MersenneTwister19937, integer } = require('random-js');
const texts = require('../../assets/json/coolness');
const { GIRLFRIEND_USER_ID } = process.env;
const { LOVER_USER_ID } = process.env;
module.exports = class CoolnessCommand extends Command {
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! ❤');
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 coolness = integer(0, texts.length - 1)(random);
return msg.reply(`${authorUser ? 'You are' : `${user.username} is`} ${texts[coolness]}`);
+2 -2
View File
@@ -1,7 +1,7 @@
const Command = require('../../structures/Command');
const { MersenneTwister19937, integer } = require('random-js');
const texts = require('../../assets/json/cuteness');
const { GIRLFRIEND_USER_ID } = process.env;
const { LOVER_USER_ID } = process.env;
module.exports = class CutenessCommand extends Command {
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! ❤');
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 cuteness = integer(0, texts.length - 1)(random);
return msg.reply(`${authorUser ? 'You are' : `${user.username} is`} ${texts[cuteness]}`);
+2 -2
View File
@@ -4,7 +4,7 @@ const { createCanvas, loadImage } = require('canvas');
const request = require('node-superfetch');
const path = require('path');
const { percentColor } = require('../../util/Util');
const { GIRLFRIEND_USER_ID } = process.env;
const { LOVER_USER_ID } = process.env;
const percentColors = [
{ pct: 0.0, color: { r: 0, g: 0, b: 255 } },
{ 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 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 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 (authorUser) level = 100;
else level = 0;
+2 -2
View File
@@ -3,7 +3,7 @@ const { oneLine } = require('common-tags');
const { MersenneTwister19937, integer } = require('random-js');
const genders = ['male', 'female'];
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 {
constructor(client) {
@@ -31,7 +31,7 @@ module.exports = class GuessLooksCommand extends Command {
if (authorUser) return msg.reply('You look amazing as always! ❤');
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. ❤`);
}
const random = MersenneTwister19937.seed(user.id);
+2 -2
View File
@@ -4,7 +4,7 @@ const { createCanvas, loadImage } = require('canvas');
const request = require('node-superfetch');
const path = require('path');
const { percentColor } = require('../../util/Util');
const { GIRLFRIEND_USER_ID } = process.env;
const { LOVER_USER_ID } = process.env;
const percentColors = [
{ pct: 0.0, color: { r: 0, g: 0, b: 255 } },
{ 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 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 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) {
level = 0;
} else if (self) {
+2 -2
View File
@@ -1,6 +1,6 @@
const Command = require('../../structures/Command');
const { MersenneTwister19937, bool } = require('random-js');
const { GIRLFRIEND_USER_ID } = process.env;
const { LOVER_USER_ID } = process.env;
module.exports = class SmashOrPassCommand extends Command {
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.');
}
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.');
}
};
+2 -2
View File
@@ -3,7 +3,7 @@ const { MersenneTwister19937, integer } = require('random-js');
const { createCanvas, loadImage } = require('canvas');
const request = require('node-superfetch');
const path = require('path');
const { GIRLFRIEND_USER_ID } = process.env;
const { LOVER_USER_ID } = process.env;
const thoughts = require('../../assets/json/think-of');
module.exports = class ThinkOfCommand extends Command {
@@ -50,7 +50,7 @@ module.exports = class ThinkOfCommand extends Command {
const self = first.id === second.id;
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 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) {
thought = thoughts[8];
} else if (self) {
+2 -2
View File
@@ -1,7 +1,7 @@
const Command = require('../../structures/Command');
const { MersenneTwister19937, integer } = require('random-js');
const { formatNumber } = require('../../util/Util');
const { GIRLFRIEND_USER_ID } = process.env;
const { LOVER_USER_ID } = process.env;
module.exports = class WorthCommand extends Command {
constructor(client) {
@@ -36,7 +36,7 @@ module.exports = class WorthCommand extends Command {
if (authorUser) return msg.reply('Infinity, you amazing owner! ❤');
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! ❤`);
}
const random = MersenneTwister19937.seed(user.id);