mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Remove backstories from waifu entirely
This commit is contained in:
@@ -342,7 +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.
|
* **waifu:** Responds with a randomly generated waifu.
|
||||||
* **xiao:** Responds with a random image of Xiao Pai.
|
* **xiao:** Responds with a random image of Xiao Pai.
|
||||||
|
|
||||||
### Seeded Randomizers:
|
### Seeded Randomizers:
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
const Command = require('../../structures/Command');
|
const Command = require('../../structures/Command');
|
||||||
const { MessageEmbed } = require('discord.js');
|
|
||||||
const request = require('node-superfetch');
|
|
||||||
const { shorten } = require('../../util/Util');
|
|
||||||
|
|
||||||
module.exports = class WaifuCommand extends Command {
|
module.exports = class WaifuCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
@@ -10,8 +7,8 @@ module.exports = class WaifuCommand extends Command {
|
|||||||
aliases: ['this-waifu-does-not-exist'],
|
aliases: ['this-waifu-does-not-exist'],
|
||||||
group: 'random-img',
|
group: 'random-img',
|
||||||
memberName: 'waifu',
|
memberName: 'waifu',
|
||||||
description: 'Responds with a randomly generated waifu and backstory.',
|
description: 'Responds with a randomly generated waifu.',
|
||||||
clientPermissions: ['EMBED_LINKS'],
|
clientPermissions: ['ATTACH_FILES'],
|
||||||
credit: [
|
credit: [
|
||||||
{
|
{
|
||||||
name: 'This Waifu Does Not Exist',
|
name: 'This Waifu Does Not Exist',
|
||||||
@@ -24,10 +21,6 @@ module.exports = class WaifuCommand extends Command {
|
|||||||
|
|
||||||
async run(msg) {
|
async run(msg) {
|
||||||
const num = Math.floor(Math.random() * 100000);
|
const num = Math.floor(Math.random() * 100000);
|
||||||
const { text } = await request.get(`https://www.thiswaifudoesnotexist.net/snippet-${num}.txt`);
|
return msg.say({ files: [`https://www.thiswaifudoesnotexist.net/example-${num}.jpg`] });
|
||||||
const embed = new MessageEmbed()
|
|
||||||
.setDescription(shorten(text, 1000))
|
|
||||||
.setImage(`https://www.thiswaifudoesnotexist.net/example-${num}.jpg`);
|
|
||||||
return msg.embed(embed);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "116.9.6",
|
"version": "116.9.7",
|
||||||
"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