mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 00:06:42 +02:00
Update what-anime, fix prompts in meme-gen
This commit is contained in:
@@ -73,10 +73,8 @@ module.exports = class WhatAnimeCommand extends Command {
|
||||
async fetchPreview(data) {
|
||||
try {
|
||||
const { body } = await request
|
||||
.get('https://trace.moe/preview.php')
|
||||
.get(`https://media.trace.moe/video/${data.anilist_id}/${encodeURIComponent(data.filename)}`)
|
||||
.query({
|
||||
anilist_id: data.anilist_id,
|
||||
file: data.filename,
|
||||
t: data.at,
|
||||
token: data.tokenthumb
|
||||
});
|
||||
|
||||
@@ -21,14 +21,14 @@ module.exports = class MemeGenCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'top',
|
||||
prompt: 'What should the something to believe in be?',
|
||||
prompt: 'What should the top row of the meme to be?',
|
||||
type: 'string',
|
||||
max: 50,
|
||||
parse: top => top.toUpperCase()
|
||||
},
|
||||
{
|
||||
key: 'bottom',
|
||||
prompt: 'What should believing result in (e.g. sacrificing everything)?',
|
||||
prompt: 'What should the bottom row of the meme to be?',
|
||||
type: 'string',
|
||||
max: 50,
|
||||
parse: bottom => bottom.toUpperCase()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "101.0.1",
|
||||
"version": "101.0.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user