mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 18:29:14 +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) {
|
async fetchPreview(data) {
|
||||||
try {
|
try {
|
||||||
const { body } = await request
|
const { body } = await request
|
||||||
.get('https://trace.moe/preview.php')
|
.get(`https://media.trace.moe/video/${data.anilist_id}/${encodeURIComponent(data.filename)}`)
|
||||||
.query({
|
.query({
|
||||||
anilist_id: data.anilist_id,
|
|
||||||
file: data.filename,
|
|
||||||
t: data.at,
|
t: data.at,
|
||||||
token: data.tokenthumb
|
token: data.tokenthumb
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -21,14 +21,14 @@ module.exports = class MemeGenCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'top',
|
key: 'top',
|
||||||
prompt: 'What should the something to believe in be?',
|
prompt: 'What should the top row of the meme to be?',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 50,
|
max: 50,
|
||||||
parse: top => top.toUpperCase()
|
parse: top => top.toUpperCase()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'bottom',
|
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',
|
type: 'string',
|
||||||
max: 50,
|
max: 50,
|
||||||
parse: bottom => bottom.toUpperCase()
|
parse: bottom => bottom.toUpperCase()
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "101.0.1",
|
"version": "101.0.2",
|
||||||
"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