mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
Add ability to turn off dating feature
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
const ImgurAlbumCommand = require('../../structures/commands/ImgurAlbum');
|
||||
const { stripIndents } = require('common-tags');
|
||||
const texts = require('../../assets/json/dating');
|
||||
const { DATING_ALBUM_ID, DATING_NAME, DATING_AGE, DATING_TAG, DATING_ORIENTATION, DATING_SERIOUS } = process.env;
|
||||
const {
|
||||
DATING_OFF,
|
||||
DATING_ALBUM_ID,
|
||||
DATING_NAME,
|
||||
DATING_AGE,
|
||||
DATING_TAG,
|
||||
DATING_ORIENTATION,
|
||||
DATING_SERIOUS
|
||||
} = process.env;
|
||||
|
||||
module.exports = class DatingCommand extends ImgurAlbumCommand {
|
||||
constructor(client) {
|
||||
@@ -17,6 +25,7 @@ module.exports = class DatingCommand extends ImgurAlbumCommand {
|
||||
}
|
||||
|
||||
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}**
|
||||
|
||||
Reference in New Issue
Block a user