mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 21:40:49 +02:00
LOVER_USER_ID
This commit is contained in:
@@ -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]}`);
|
||||
|
||||
Reference in New Issue
Block a user