This commit is contained in:
Dragon Fire
2020-09-08 10:04:01 -04:00
parent a51f666fbd
commit 993f7d42a6
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -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)
});
}
+2
View File
@@ -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...');