mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 21:44:48 +02:00
Attach waifu as image rather than thumbnail
This commit is contained in:
@@ -316,7 +316,6 @@ Total: 465
|
|||||||
* **superpower:** Responds with a random superpower.
|
* **superpower:** Responds with a random superpower.
|
||||||
* **the-onion:** Responds with a random "The Onion" article.
|
* **the-onion:** Responds with a random "The Onion" article.
|
||||||
* **this-for-that:** So, basically, it's like a bot command for this dumb meme.
|
* **this-for-that:** So, basically, it's like a bot command for this dumb meme.
|
||||||
* **waifu:** Responds with a randomly generated waifu and backstory.
|
|
||||||
* **will-you-press-the-button:** Responds with a random "Will You Press The Button?" dilemma.
|
* **will-you-press-the-button:** Responds with a random "Will You Press The Button?" dilemma.
|
||||||
* **word:** Responds with a random word.
|
* **word:** Responds with a random word.
|
||||||
* **would-you-rather:** Responds with a random "Would you rather ...?" question.
|
* **would-you-rather:** Responds with a random "Would you rather ...?" question.
|
||||||
@@ -343,6 +342,7 @@ Total: 465
|
|||||||
* **potato:** Responds with a random potato image.
|
* **potato:** Responds with a random potato image.
|
||||||
* **shiba:** Responds with a random image of a Shiba Inu.
|
* **shiba:** Responds with a random image of a Shiba Inu.
|
||||||
* **shrek:** Responds with a random image of Shrek, the sexiest man alive.
|
* **shrek:** Responds with a random image of Shrek, the sexiest man alive.
|
||||||
|
* **waifu:** Responds with a randomly generated waifu and backstory.
|
||||||
* **xiao:** Responds with a random image of Xiao Pai.
|
* **xiao:** Responds with a random image of Xiao Pai.
|
||||||
|
|
||||||
### Seeded Randomizers:
|
### Seeded Randomizers:
|
||||||
@@ -1284,8 +1284,6 @@ here.
|
|||||||
* psycho-pass ([Crime Coefficient Levels Data](https://psychopass.fandom.com/wiki/Crime_Coefficient_(Index%27))
|
* psycho-pass ([Crime Coefficient Levels Data](https://psychopass.fandom.com/wiki/Crime_Coefficient_(Index%27))
|
||||||
- [r/IsTodayFridayThe13th](https://www.reddit.com/r/IsTodayFridayThe13th/)
|
- [r/IsTodayFridayThe13th](https://www.reddit.com/r/IsTodayFridayThe13th/)
|
||||||
* friday-the-13th (Concept)
|
* friday-the-13th (Concept)
|
||||||
- [r/Showerthoughts](https://www.reddit.com/r/showerthoughts)
|
|
||||||
* shower-thought (Shower Thought Data)
|
|
||||||
- [Random-d.uk](https://random-d.uk/)
|
- [Random-d.uk](https://random-d.uk/)
|
||||||
* duck ([API](https://random-d.uk/api))
|
* duck ([API](https://random-d.uk/api))
|
||||||
* http-duck ([API](https://random-d.uk/http))
|
* http-duck ([API](https://random-d.uk/http))
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module.exports = class WaifuCommand extends Command {
|
|||||||
super(client, {
|
super(client, {
|
||||||
name: 'waifu',
|
name: 'waifu',
|
||||||
aliases: ['this-waifu-does-not-exist'],
|
aliases: ['this-waifu-does-not-exist'],
|
||||||
group: 'random-res',
|
group: 'random-img',
|
||||||
memberName: 'waifu',
|
memberName: 'waifu',
|
||||||
description: 'Responds with a randomly generated waifu and backstory.',
|
description: 'Responds with a randomly generated waifu and backstory.',
|
||||||
clientPermissions: ['EMBED_LINKS'],
|
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 { text } = await request.get(`https://www.thiswaifudoesnotexist.net/snippet-${num}.txt`);
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setDescription(shorten(text, 1000))
|
.setDescription(shorten(text, 1000))
|
||||||
.setThumbnail(`https://www.thiswaifudoesnotexist.net/example-${num}.jpg`);
|
.setImage(`https://www.thiswaifudoesnotexist.net/example-${num}.jpg`);
|
||||||
return msg.embed(embed);
|
return msg.embed(embed);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -8,14 +8,7 @@ module.exports = class ShowerThoughtCommand extends SubredditCommand {
|
|||||||
group: 'random-res',
|
group: 'random-res',
|
||||||
memberName: 'shower-thought',
|
memberName: 'shower-thought',
|
||||||
description: 'Responds with a random shower thought, directly from r/Showerthoughts.',
|
description: 'Responds with a random shower thought, directly from r/Showerthoughts.',
|
||||||
subreddit: 'Showerthoughts',
|
subreddit: 'Showerthoughts'
|
||||||
credit: [
|
|
||||||
{
|
|
||||||
name: 'r/Showerthoughts',
|
|
||||||
url: 'https://www.reddit.com/r/showerthoughts',
|
|
||||||
reason: 'Shower Thought Data'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "116.9.4",
|
"version": "116.9.5",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user