From 993f7d42a6ac4feb0a4fc7613ab6310f852c77b2 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 8 Sep 2020 10:04:01 -0400 Subject: [PATCH] Fix --- commands/other/dating.js | 3 ++- structures/commands/ImgurAlbum.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/other/dating.js b/commands/other/dating.js index 3579513f..cfc40424 100644 --- a/commands/other/dating.js +++ b/commands/other/dating.js @@ -20,7 +20,8 @@ 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 + albumID: DATING_ALBUM_ID, + noImage: Boolean(DATING_OFF) }); } diff --git a/structures/commands/ImgurAlbum.js b/structures/commands/ImgurAlbum.js index bf960df0..89dc85a4 100644 --- a/structures/commands/ImgurAlbum.js +++ b/structures/commands/ImgurAlbum.js @@ -14,9 +14,11 @@ module.exports = class ImgurAlbumCommand extends Command { reason: 'API', reasonURL: 'https://apidocs.imgur.com/' }); + this.noImage = info.noImage; } async run(msg, { user }) { + if (this.noImage) return msg.say(this.generateText(msg, user)); try { const image = await this.random(); if (!image) return msg.reply('This album has no images...');