mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
Attach waifu as image rather than thumbnail
This commit is contained in:
@@ -8,7 +8,7 @@ module.exports = class WaifuCommand extends Command {
|
||||
super(client, {
|
||||
name: 'waifu',
|
||||
aliases: ['this-waifu-does-not-exist'],
|
||||
group: 'random-res',
|
||||
group: 'random-img',
|
||||
memberName: 'waifu',
|
||||
description: 'Responds with a randomly generated waifu and backstory.',
|
||||
clientPermissions: ['EMBED_LINKS'],
|
||||
@@ -27,7 +27,7 @@ module.exports = class WaifuCommand extends Command {
|
||||
const { text } = await request.get(`https://www.thiswaifudoesnotexist.net/snippet-${num}.txt`);
|
||||
const embed = new MessageEmbed()
|
||||
.setDescription(shorten(text, 1000))
|
||||
.setThumbnail(`https://www.thiswaifudoesnotexist.net/example-${num}.jpg`);
|
||||
.setImage(`https://www.thiswaifudoesnotexist.net/example-${num}.jpg`);
|
||||
return msg.embed(embed);
|
||||
}
|
||||
};
|
||||
@@ -8,14 +8,7 @@ module.exports = class ShowerThoughtCommand extends SubredditCommand {
|
||||
group: 'random-res',
|
||||
memberName: 'shower-thought',
|
||||
description: 'Responds with a random shower thought, directly from r/Showerthoughts.',
|
||||
subreddit: 'Showerthoughts',
|
||||
credit: [
|
||||
{
|
||||
name: 'r/Showerthoughts',
|
||||
url: 'https://www.reddit.com/r/showerthoughts',
|
||||
reason: 'Shower Thought Data'
|
||||
}
|
||||
]
|
||||
subreddit: 'Showerthoughts'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user