mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 19:04:42 +02:00
Remove prompt from all commands
This commit is contained in:
@@ -35,7 +35,6 @@ module.exports = class AnalogClockCommand extends Command {
|
||||
{
|
||||
key: 'timeZone',
|
||||
label: 'time zone',
|
||||
prompt: 'Which time zone do you want to get the time of?',
|
||||
type: 'timezone'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -28,7 +28,6 @@ module.exports = class ApprovedCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ module.exports = class AsciiCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -19,14 +19,12 @@ module.exports = class BlurCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'radius',
|
||||
prompt: 'What blur radius would you like to use?',
|
||||
type: 'integer',
|
||||
max: 180,
|
||||
min: 1
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -33,7 +33,6 @@ module.exports = class BobRossCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ module.exports = class BrazzersCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@ module.exports = class CharcoalCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -19,13 +19,11 @@ module.exports = class ChocolateMilkCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 1024 })
|
||||
},
|
||||
{
|
||||
key: 'direction',
|
||||
prompt: 'What direction should the avatar face? Either right or left.',
|
||||
type: 'string',
|
||||
oneOf: ['left', 'right'],
|
||||
default: 'left',
|
||||
|
||||
@@ -18,7 +18,6 @@ module.exports = class CircleCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'Which image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ module.exports = class ColorCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'color',
|
||||
prompt: 'What color do you want to view? This must be a #colorcode.',
|
||||
type: 'string',
|
||||
validate: color => /^#[0-9A-F]{6}$/i.test(color)
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@ module.exports = class CommunistCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ module.exports = class ContrastCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { createCanvas, loadImage } = require('canvas');
|
||||
const request = require('node-superfetch');
|
||||
const { list } = require('../../util/Util');
|
||||
const formats = {
|
||||
jpg: 'image/jpeg',
|
||||
jpeg: 'image/jpeg',
|
||||
@@ -25,14 +24,12 @@ module.exports = class ConvertImageCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'format',
|
||||
prompt: `What format do you want to convert the image to? Either ${list(Object.keys(formats), 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: Object.keys(formats),
|
||||
parse: format => format.toLowerCase()
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'Which image would you like to edit?',
|
||||
type: 'image'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -20,7 +20,6 @@ module.exports = class CreateQRCodeCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text would you like to convert to a QR Code?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -19,12 +19,10 @@ module.exports = class DesaturateCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'level',
|
||||
prompt: 'What level of desaturation would you like to use?',
|
||||
type: 'integer'
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ module.exports = class DexterCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 256 })
|
||||
}
|
||||
|
||||
@@ -18,12 +18,10 @@ module.exports = class DistortCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'level',
|
||||
prompt: 'What level of distortion would you like to use?',
|
||||
type: 'integer'
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@ module.exports = class EmbossCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@ module.exports = class FireFrameCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -26,14 +26,12 @@ module.exports = class FishEyeCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'level',
|
||||
prompt: 'What level of distortion would you like to use?',
|
||||
type: 'integer',
|
||||
min: 1,
|
||||
max: 100
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@ const Command = require('../../framework/Command');
|
||||
const { createCanvas, loadImage } = require('canvas');
|
||||
const request = require('node-superfetch');
|
||||
const path = require('path');
|
||||
const { list } = require('../../util/Util');
|
||||
const { centerImagePart } = require('../../util/Canvas');
|
||||
const frames = require('../../assets/json/frame');
|
||||
|
||||
@@ -30,14 +29,12 @@ module.exports = class FrameCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'frame',
|
||||
prompt: `What kind of frame do you want to use? Either ${list(Object.keys(frames), 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: Object.keys(frames),
|
||||
parse: frame => frames[frame.toLowerCase()]
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ module.exports = class GhostCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@ module.exports = class GlassShatterCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ module.exports = class GlitchCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ module.exports = class GreyscaleCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ module.exports = class GunCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@ module.exports = class HandsCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@ module.exports = class IfunnyCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -25,14 +25,12 @@ module.exports = class ImplodeCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'level',
|
||||
prompt: 'What level would you like to use? From 1-100.',
|
||||
type: 'integer',
|
||||
min: 1,
|
||||
max: 100
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ module.exports = class InvertCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -33,7 +33,6 @@ module.exports = class LegoIconCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ module.exports = class LiquidRescaleCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { createCanvas, loadImage } = require('canvas');
|
||||
const request = require('node-superfetch');
|
||||
const { list } = require('../../util/Util');
|
||||
const types = ['x', 'y', 'both'];
|
||||
|
||||
module.exports = class MirrorCommand extends Command {
|
||||
@@ -19,14 +18,12 @@ module.exports = class MirrorCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'type',
|
||||
prompt: `What axis do you want to mirror? Either ${list(types, 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: types,
|
||||
parse: type => type.toLowerCase()
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ module.exports = class MotionBlurCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ module.exports = class NeedsMoreJpegCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'quality',
|
||||
prompt: 'What quality should the resulting image use?',
|
||||
type: 'float',
|
||||
default: 0.5,
|
||||
min: 0.01,
|
||||
@@ -26,7 +25,6 @@ module.exports = class NeedsMoreJpegCommand extends Command {
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -27,14 +27,12 @@ module.exports = class NoiseCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'type',
|
||||
prompt: `What type of noise would you like to add? Either ${list(types, 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: types,
|
||||
default: 'poisson'
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ module.exports = class OilPaintingCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ module.exports = class PetCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 128 })
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ module.exports = class PixelizeCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@ module.exports = class PokemonFusionCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'body',
|
||||
prompt: 'What Pokémon should be fused as the body?',
|
||||
type: 'string',
|
||||
default: () => pokeKeys[Math.floor(Math.random() * pokeKeys.length)],
|
||||
validate: body => {
|
||||
@@ -38,7 +37,6 @@ module.exports = class PokemonFusionCommand extends Command {
|
||||
},
|
||||
{
|
||||
key: 'palette',
|
||||
prompt: 'What Pokémon should be fused as the palette?',
|
||||
type: 'string',
|
||||
default: () => pokeKeys[Math.floor(Math.random() * pokeKeys.length)],
|
||||
validate: palette => {
|
||||
|
||||
@@ -28,7 +28,6 @@ module.exports = class PoliceTapeCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ module.exports = class RainbowCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@ module.exports = class RejctedCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -17,21 +17,18 @@ module.exports = class ResizeCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'width',
|
||||
prompt: 'What do you want the new width of the image to be?',
|
||||
type: 'integer',
|
||||
min: 1,
|
||||
max: 2000
|
||||
},
|
||||
{
|
||||
key: 'height',
|
||||
prompt: 'What do you want the new height of the image to be?',
|
||||
type: 'integer',
|
||||
min: 1,
|
||||
max: 2000
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'Which image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 2048 })
|
||||
}
|
||||
|
||||
@@ -17,14 +17,12 @@ module.exports = class RotateCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'degrees',
|
||||
prompt: 'How many degrees do you want to rotate the image?',
|
||||
type: 'integer',
|
||||
min: -360,
|
||||
max: 360
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ module.exports = class SepiaCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -20,14 +20,12 @@ module.exports = class ShakeCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'amount',
|
||||
prompt: 'How much do you want to shake the image? Give a number, like 1.',
|
||||
type: 'integer',
|
||||
max: 50,
|
||||
min: 1
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ module.exports = class SilhouetteCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -27,13 +27,11 @@ module.exports = class SipCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 1024 })
|
||||
},
|
||||
{
|
||||
key: 'direction',
|
||||
prompt: 'What direction should the avatar face? Either right or left.',
|
||||
type: 'string',
|
||||
oneOf: ['left', 'right'],
|
||||
default: 'left',
|
||||
|
||||
@@ -27,7 +27,6 @@ module.exports = class SketchCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -31,13 +31,11 @@ module.exports = class SnapchatCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text should the snap say?',
|
||||
type: 'string',
|
||||
max: 32
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -38,19 +38,16 @@ module.exports = class SpotifyNowPlayingCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'name',
|
||||
prompt: 'What do you want the song to be named?',
|
||||
type: 'string',
|
||||
max: 50
|
||||
},
|
||||
{
|
||||
key: 'artist',
|
||||
prompt: 'Who is the artist of the song?',
|
||||
type: 'string',
|
||||
max: 50
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 256 })
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ module.exports = class SquareCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'Which image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -26,14 +26,12 @@ module.exports = class SquishCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'axis',
|
||||
prompt: 'What axis do you want to squish?',
|
||||
type: 'string',
|
||||
oneOf: ['x', 'y'],
|
||||
parse: axis => axis.toLowerCase()
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -39,13 +39,11 @@ module.exports = class SteamCardCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'name',
|
||||
prompt: 'What do you want the card to be named?',
|
||||
type: 'string',
|
||||
max: 50
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 256 })
|
||||
}
|
||||
|
||||
@@ -27,13 +27,11 @@ module.exports = class SubtitleCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What should the subtitles say?',
|
||||
type: 'string',
|
||||
max: 200
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -25,14 +25,12 @@ module.exports = class SwirlCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'degrees',
|
||||
prompt: 'What degrees would you like to use? From -360-+360.',
|
||||
type: 'integer',
|
||||
min: -360,
|
||||
max: 360
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -18,13 +18,11 @@ module.exports = class TintCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'color',
|
||||
prompt: 'What color do you want to use? This can be #colorcode or a name.',
|
||||
type: 'string',
|
||||
parse: color => color.toLowerCase()
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ module.exports = class VignetteCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@ module.exports = class WantedCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -33,13 +33,11 @@ module.exports = class WildPokemonCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'name',
|
||||
prompt: 'What is the name of the Pokémon that should appear?',
|
||||
type: 'string',
|
||||
max: 13
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 128 })
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@ module.exports = class YouDiedCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||
}
|
||||
|
||||
@@ -52,14 +52,12 @@ module.exports = class YuGiOhGenCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'type',
|
||||
prompt: `What type of card do you want to make? Either ${list(types, 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: types,
|
||||
parse: type => type.toLowerCase()
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 1024 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user