From 1f987befa649c90ae883ef5e4bb7a319b7dcd9f5 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 2 Mar 2021 17:27:25 -0500 Subject: [PATCH] LOVER_USER_ID --- .env.example | 2 +- README.md | 2 +- commands/random-seed/coolness.js | 4 ++-- commands/random-seed/cuteness.js | 4 ++-- commands/random-seed/friendship.js | 4 ++-- commands/random-seed/guess-looks.js | 4 ++-- commands/random-seed/ship.js | 4 ++-- commands/random-seed/smash-or-pass.js | 4 ++-- commands/random-seed/think-of.js | 4 ++-- commands/random-seed/worth.js | 4 ++-- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.env.example b/.env.example index f85de1af..0f953acb 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,7 @@ XIAO_TOKEN= # Seperate OWNERS with a , OWNERS= -GIRLFRIEND_USER_ID= +LOVER_USER_ID= XIAO_PREFIX= INVITE= XIAO_WEBHOOK_ID= diff --git a/README.md b/README.md index af1e0fac..e1d84e63 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/commands/random-seed/coolness.js b/commands/random-seed/coolness.js index b8d871d8..081db280 100644 --- a/commands/random-seed/coolness.js +++ b/commands/random-seed/coolness.js @@ -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]}`); diff --git a/commands/random-seed/cuteness.js b/commands/random-seed/cuteness.js index 66f91d0e..dd08b157 100644 --- a/commands/random-seed/cuteness.js +++ b/commands/random-seed/cuteness.js @@ -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]}`); diff --git a/commands/random-seed/friendship.js b/commands/random-seed/friendship.js index e2f0b79d..27a158a8 100644 --- a/commands/random-seed/friendship.js +++ b/commands/random-seed/friendship.js @@ -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; diff --git a/commands/random-seed/guess-looks.js b/commands/random-seed/guess-looks.js index ed60182d..a2dd8515 100644 --- a/commands/random-seed/guess-looks.js +++ b/commands/random-seed/guess-looks.js @@ -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); diff --git a/commands/random-seed/ship.js b/commands/random-seed/ship.js index 5dae1045..8c52f421 100644 --- a/commands/random-seed/ship.js +++ b/commands/random-seed/ship.js @@ -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) { diff --git a/commands/random-seed/smash-or-pass.js b/commands/random-seed/smash-or-pass.js index 1cf91525..ca9fc81c 100644 --- a/commands/random-seed/smash-or-pass.js +++ b/commands/random-seed/smash-or-pass.js @@ -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.'); } }; diff --git a/commands/random-seed/think-of.js b/commands/random-seed/think-of.js index 74a6110b..01932817 100644 --- a/commands/random-seed/think-of.js +++ b/commands/random-seed/think-of.js @@ -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) { diff --git a/commands/random-seed/worth.js b/commands/random-seed/worth.js index 19d81106..6d95aa3c 100644 --- a/commands/random-seed/worth.js +++ b/commands/random-seed/worth.js @@ -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);