mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 21:40:51 +02:00
Make dating always be Xiao
This commit is contained in:
@@ -1,15 +1,7 @@
|
||||
const ImgurAlbumCommand = require('../../structures/commands/ImgurAlbum');
|
||||
const { stripIndents } = require('common-tags');
|
||||
const texts = require('../../assets/json/dating');
|
||||
const {
|
||||
DATING_OFF,
|
||||
DATING_ALBUM_ID,
|
||||
DATING_NAME,
|
||||
DATING_AGE,
|
||||
DATING_TAG,
|
||||
DATING_ORIENTATION,
|
||||
DATING_SERIOUS
|
||||
} = process.env;
|
||||
const { DATING_ALBUM_ID } = process.env;
|
||||
|
||||
module.exports = class DatingCommand extends ImgurAlbumCommand {
|
||||
constructor(client) {
|
||||
@@ -20,35 +12,18 @@ module.exports = class DatingCommand extends ImgurAlbumCommand {
|
||||
memberName: 'dating',
|
||||
description: 'Find the person of your dreams with this dating system!',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
albumID: DATING_ALBUM_ID,
|
||||
noImage: Boolean(DATING_OFF)
|
||||
albumID: DATING_ALBUM_ID
|
||||
});
|
||||
}
|
||||
|
||||
generateText() {
|
||||
if (DATING_OFF) return 'The dating feature is currently inactive. Check back soon!';
|
||||
const text = texts[Math.floor(Math.random() * texts.length)];
|
||||
return stripIndents`
|
||||
**${DATING_NAME}, ${DATING_AGE}**
|
||||
**${this.client.user.username}, ${new Date().getFullYear() - 2017}**
|
||||
_${text}_
|
||||
|
||||
Send a friend request to ${DATING_TAG} to meet now! ${this.orientationText}
|
||||
${this.seriousText}
|
||||
Send a friend request to ${this.client.user.tag} to meet now!
|
||||
Don't worry, this is just a joke. Unless...
|
||||
`;
|
||||
}
|
||||
|
||||
get orientationText() {
|
||||
if (DATING_ORIENTATION === 'girls') return '(Note: Girls only)';
|
||||
if (DATING_ORIENTATION === 'boys') return '(Note: Boys only)';
|
||||
if (DATING_ORIENTATION === 'both') return '(All genders welcome!)';
|
||||
return '';
|
||||
}
|
||||
|
||||
get seriousText() {
|
||||
if (!DATING_SERIOUS || DATING_SERIOUS === 'false') return 'Don\'t worry, this is just a joke. Unless...';
|
||||
if (DATING_SERIOUS === 'true') {
|
||||
return 'This may look like a joke, but if you actually want to, feel free to really try.';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user