mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Remove prompt from all commands
This commit is contained in:
@@ -10,7 +10,6 @@ module.exports = class AgeCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'year',
|
key: 'year',
|
||||||
prompt: 'What year would you like to get the age for?',
|
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
min: 1
|
min: 1
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ module.exports = class AspectRatioCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to get the aspect ratio of?',
|
|
||||||
type: 'image-or-avatar'
|
type: 'image-or-avatar'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ module.exports = class BirthstoneCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'month',
|
key: 'month',
|
||||||
prompt: 'What month would you like to get the birthstone for?',
|
|
||||||
type: 'month'
|
type: 'month'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ module.exports = class CharacterCountCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'text',
|
key: 'text',
|
||||||
prompt: 'What text would you like to get the character count of?',
|
|
||||||
type: 'message|string'
|
type: 'message|string'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ module.exports = class ChineseZodiacCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'year',
|
key: 'year',
|
||||||
prompt: 'What year would you like to get the Chinese Zodiac Sign for?',
|
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
min: 1
|
min: 1
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ module.exports = class DominantColorCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to test?',
|
|
||||||
type: 'image-or-avatar'
|
type: 'image-or-avatar'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ module.exports = class FacesCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What face would you like to scan?',
|
|
||||||
type: 'image-or-avatar'
|
type: 'image-or-avatar'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ module.exports = class GenderCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'name',
|
key: 'name',
|
||||||
prompt: 'What name do you want to determine the gender of?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 20
|
max: 20
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ module.exports = class GenerationCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'year',
|
key: 'year',
|
||||||
prompt: 'What year would you like to get the Generation for?',
|
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
min: 1,
|
min: 1,
|
||||||
max: new Date().getFullYear()
|
max: new Date().getFullYear()
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ module.exports = class ImageSizeCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to get the size of?',
|
|
||||||
type: 'image-or-avatar'
|
type: 'image-or-avatar'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ module.exports = class IsItDownCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'url',
|
key: 'url',
|
||||||
prompt: 'What URL do you want to test?',
|
|
||||||
type: 'url'
|
type: 'url'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -12,12 +12,10 @@ module.exports = class LevenshteinCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'text1',
|
key: 'text1',
|
||||||
prompt: 'What is the first text you would like to compare?',
|
|
||||||
type: 'string'
|
type: 'string'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'text2',
|
key: 'text2',
|
||||||
prompt: 'What is the second text you would like to compare?',
|
|
||||||
type: 'string'
|
type: 'string'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ module.exports = class NsfwImageCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to test?',
|
|
||||||
type: 'image-or-avatar'
|
type: 'image-or-avatar'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ module.exports = class NsfwUrlCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'url',
|
key: 'url',
|
||||||
prompt: 'What URL would you like to test?',
|
|
||||||
type: 'url'
|
type: 'url'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ module.exports = class ParseTimeCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'time',
|
key: 'time',
|
||||||
prompt: 'What do you want me to analyze?',
|
|
||||||
type: 'sherlock'
|
type: 'sherlock'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ module.exports = class ReadQRCodeCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What QR Code would you like to read?',
|
|
||||||
type: 'image-or-avatar'
|
type: 'image-or-avatar'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ module.exports = class ScrabbleScoreCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'word',
|
key: 'word',
|
||||||
prompt: 'What word would you like to get the scrabble score of?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
parse: word => word.toLowerCase()
|
parse: word => word.toLowerCase()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ module.exports = class ScreenshotCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'url',
|
key: 'url',
|
||||||
prompt: 'What webpage do you want to take a screenshot of?',
|
|
||||||
type: 'url'
|
type: 'url'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -13,12 +13,10 @@ module.exports = class TextDiffCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'text1',
|
key: 'text1',
|
||||||
prompt: 'What is the first text you would like to compare?',
|
|
||||||
type: 'string'
|
type: 'string'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'text2',
|
key: 'text2',
|
||||||
prompt: 'What is the second text you would like to compare?',
|
|
||||||
type: 'string'
|
type: 'string'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ module.exports = class ValidUrlCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'url',
|
key: 'url',
|
||||||
prompt: 'What URL would you like to test?',
|
|
||||||
type: 'string'
|
type: 'string'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -13,12 +13,10 @@ module.exports = class ZodiacSignCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'month',
|
key: 'month',
|
||||||
prompt: 'What month would you like to get the Zodiac Sign for?',
|
|
||||||
type: 'month'
|
type: 'month'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'day',
|
key: 'day',
|
||||||
prompt: 'What day would you like to get the Zodiac Sign for?',
|
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
min: 1,
|
min: 1,
|
||||||
max: 31
|
max: 31
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ module.exports = class BeautifyCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'code',
|
key: 'code',
|
||||||
prompt: 'What code do you want to beautify?',
|
|
||||||
type: 'code'
|
type: 'code'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -25,13 +25,11 @@ module.exports = class GithubCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'author',
|
key: 'author',
|
||||||
prompt: 'Who is the author of the repository?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
parse: author => encodeURIComponent(author)
|
parse: author => encodeURIComponent(author)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'repository',
|
key: 'repository',
|
||||||
prompt: 'What is the name of the repository?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
parse: repository => encodeURIComponent(repository)
|
parse: repository => encodeURIComponent(repository)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ module.exports = class LintRuleCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'rule',
|
key: 'rule',
|
||||||
prompt: 'Which rule would you like to get information on?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
parse: rule => rule.toLowerCase().replaceAll(' ', '-')
|
parse: rule => rule.toLowerCase().replaceAll(' ', '-')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ module.exports = class LintCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'code',
|
key: 'code',
|
||||||
prompt: 'What code do you want to lint?',
|
|
||||||
type: 'code'
|
type: 'code'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ module.exports = class NPMCommand extends Command {
|
|||||||
{
|
{
|
||||||
key: 'pkg',
|
key: 'pkg',
|
||||||
label: 'package',
|
label: 'package',
|
||||||
prompt: 'What package would you like to get information on?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
parse: pkg => encodeURIComponent(pkg.replaceAll(' ', '-'))
|
parse: pkg => encodeURIComponent(pkg.replaceAll(' ', '-'))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,12 +18,10 @@ module.exports = class AvatarFusionCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'overlay',
|
key: 'overlay',
|
||||||
prompt: 'Which user would you like to put over the base?',
|
|
||||||
type: 'user'
|
type: 'user'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'base',
|
key: 'base',
|
||||||
prompt: 'Which user would you like to be the base?',
|
|
||||||
type: 'user',
|
type: 'user',
|
||||||
default: msg => msg.author
|
default: msg => msg.author
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,13 +42,11 @@ module.exports = class EjectCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
prompt: 'Which user would you like to edit the avatar of?',
|
|
||||||
type: 'user',
|
type: 'user',
|
||||||
default: msg => msg.author
|
default: msg => msg.author
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'imposter',
|
key: 'imposter',
|
||||||
prompt: 'Is the user an imposter?',
|
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: ''
|
default: ''
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ module.exports = class FireCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
prompt: 'Which user would you like to edit the avatar of?',
|
|
||||||
type: 'user',
|
type: 'user',
|
||||||
default: msg => msg.author
|
default: msg => msg.author
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ const { createCanvas, loadImage } = require('canvas');
|
|||||||
const request = require('node-superfetch');
|
const request = require('node-superfetch');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const { list } = require('../../util/Util');
|
|
||||||
const hats = fs.readdirSync(path.join(__dirname, '..', '..', 'assets', 'images', 'hat'))
|
const hats = fs.readdirSync(path.join(__dirname, '..', '..', 'assets', 'images', 'hat'))
|
||||||
.map(hat => hat.replace('.png', ''));
|
.map(hat => hat.replace('.png', ''));
|
||||||
|
|
||||||
@@ -125,14 +124,12 @@ module.exports = class HatCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'type',
|
key: 'type',
|
||||||
prompt: `What type of hat would you like to use? Either ${list(hats, 'or')}.`,
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
oneOf: hats,
|
oneOf: hats,
|
||||||
parse: type => type.toLowerCase()
|
parse: type => type.toLowerCase()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
prompt: 'Which user would you like to edit the avatar of?',
|
|
||||||
type: 'user',
|
type: 'user',
|
||||||
default: msg => msg.author
|
default: msg => msg.author
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ module.exports = class HeLivesInYouCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
prompt: 'Which user would you like to edit the avatar of?',
|
|
||||||
type: 'user',
|
type: 'user',
|
||||||
default: msg => msg.author
|
default: msg => msg.author
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ module.exports = class HeartsCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
prompt: 'Which user would you like to edit the avatar of?',
|
|
||||||
type: 'user',
|
type: 'user',
|
||||||
default: msg => msg.author
|
default: msg => msg.author
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ module.exports = class IHaveThePowerCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
prompt: 'Which user would you like to edit the avatar of?',
|
|
||||||
type: 'user',
|
type: 'user',
|
||||||
default: msg => msg.author
|
default: msg => msg.author
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,14 +34,12 @@ module.exports = class RipCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
prompt: 'Which user would you like to edit the avatar of?',
|
|
||||||
type: 'user',
|
type: 'user',
|
||||||
default: msg => msg.author
|
default: msg => msg.author
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'cause',
|
key: 'cause',
|
||||||
label: 'cause of death',
|
label: 'cause of death',
|
||||||
prompt: 'What was the cause of death?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: ''
|
default: ''
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ module.exports = class StatusButtonCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
prompt: 'Which user would you like to get the status button of?',
|
|
||||||
type: 'user',
|
type: 'user',
|
||||||
default: msg => msg.author
|
default: msg => msg.author
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,12 +33,10 @@ module.exports = class SteamNowPlayingCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'game',
|
key: 'game',
|
||||||
prompt: 'Which game would you like the user to be playing?',
|
|
||||||
type: 'string'
|
type: 'string'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
prompt: 'Which user would you like to be playing the game?',
|
|
||||||
type: 'user',
|
type: 'user',
|
||||||
default: msg => msg.author
|
default: msg => msg.author
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ module.exports = class TriggeredCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
prompt: 'Which user would you like to edit the avatar of?',
|
|
||||||
type: 'user',
|
type: 'user',
|
||||||
default: msg => msg.author
|
default: msg => msg.author
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ module.exports = class AnimeEyesCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What face would you like to scan?',
|
|
||||||
type: 'image-or-avatar'
|
type: 'image-or-avatar'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ module.exports = class DannyDevitoCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What face would you like to scan?',
|
|
||||||
type: 'image-or-avatar'
|
type: 'image-or-avatar'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -19,12 +19,10 @@ module.exports = class EmojiFaceCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'emoji',
|
key: 'emoji',
|
||||||
prompt: 'What emoji do you want to draw?',
|
|
||||||
type: 'custom-emoji|default-emoji'
|
type: 'custom-emoji|default-emoji'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What face would you like to scan?',
|
|
||||||
type: 'image-or-avatar'
|
type: 'image-or-avatar'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ module.exports = class EyesCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What face would you like to scan?',
|
|
||||||
type: 'image-or-avatar'
|
type: 'image-or-avatar'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -49,14 +49,12 @@ module.exports = class AceAttorneyCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'character',
|
key: 'character',
|
||||||
prompt: `What character do you want to use? Either ${list(Object.keys(characters), 'or')}.`,
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
oneOf: Object.values(characters).reduce((a, b) => a.concat(b)),
|
oneOf: Object.values(characters).reduce((a, b) => a.concat(b)),
|
||||||
parse: character => character.toLowerCase()
|
parse: character => character.toLowerCase()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'quote',
|
key: 'quote',
|
||||||
prompt: 'What should the character say?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 250
|
max: 250
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ module.exports = class AchievementCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'text',
|
key: 'text',
|
||||||
prompt: 'What should the text of the achievement be?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 50
|
max: 50
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,20 +37,17 @@ module.exports = class AxisCultSignUpCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'gender',
|
key: 'gender',
|
||||||
prompt: 'What is your gender?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
oneOf: ['male', 'female']
|
oneOf: ['male', 'female']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'age',
|
key: 'age',
|
||||||
prompt: 'How old are you?',
|
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
min: 1,
|
min: 1,
|
||||||
max: 10000
|
max: 10000
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'profession',
|
key: 'profession',
|
||||||
prompt: 'What is your profession?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 15
|
max: 15
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ module.exports = class CautionCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'text',
|
key: 'text',
|
||||||
prompt: 'What text should the caution sign say?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 500
|
max: 500
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,13 +38,11 @@ module.exports = class CertificateCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'reason',
|
key: 'reason',
|
||||||
prompt: 'What is the reason for the award?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 30
|
max: 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'name',
|
key: 'name',
|
||||||
prompt: 'What is the name of the person recieving the award?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 30,
|
max: 30,
|
||||||
default: msg => msg.author.username
|
default: msg => msg.author.username
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ module.exports = class ChineseRestaurantCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'text',
|
key: 'text',
|
||||||
prompt: 'What should the text of the sign be?',
|
|
||||||
type: 'string'
|
type: 'string'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ module.exports = class DangerCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'text',
|
key: 'text',
|
||||||
prompt: 'What text should the danger sign say?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 500
|
max: 500
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,12 +17,10 @@ module.exports = class FontCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'font',
|
key: 'font',
|
||||||
prompt: 'What font do you want to use? Only fonts used in other commands are available.',
|
|
||||||
type: 'font'
|
type: 'font'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'text',
|
key: 'text',
|
||||||
prompt: 'What text do you want to type?',
|
|
||||||
type: 'string'
|
type: 'string'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ module.exports = class GandhiQuoteCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'quote',
|
key: 'quote',
|
||||||
prompt: 'What quote should Gandhi say?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 500
|
max: 500
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ module.exports = class HighwaySignCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'text',
|
key: 'text',
|
||||||
prompt: 'What should the text of the sign be?',
|
|
||||||
type: 'string'
|
type: 'string'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ module.exports = class HollywoodStarCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'name',
|
key: 'name',
|
||||||
prompt: 'What name should be on the star?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 30
|
max: 30
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ module.exports = class JeopardyQuestionCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'text',
|
key: 'text',
|
||||||
prompt: 'What should the text of the question be?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 500
|
max: 500
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ module.exports = class LicensePlateCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'text',
|
key: 'text',
|
||||||
prompt: 'What text should the license plate say?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 10
|
max: 10
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ module.exports = class SpeedLimitCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'limit',
|
key: 'limit',
|
||||||
prompt: 'What limit should be on the sign?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 5
|
max: 5
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ module.exports = class SpongebobTimeCardCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'text',
|
key: 'text',
|
||||||
prompt: 'What should the text of the time card be?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 280
|
max: 280
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,13 +38,11 @@ module.exports = class TweetCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
prompt: 'What user should say the tweet? Use the handle, not the name.',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 15
|
max: 15
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'text',
|
key: 'text',
|
||||||
prompt: 'What should the text of the tweet be?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 280
|
max: 280
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
const Command = require('../../framework/Command');
|
const Command = require('../../framework/Command');
|
||||||
const { createCanvas, loadImage } = require('canvas');
|
const { createCanvas, loadImage } = require('canvas');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { list } = require('../../util/Util');
|
|
||||||
const { wrapText } = require('../../util/Canvas');
|
const { wrapText } = require('../../util/Canvas');
|
||||||
const characters = require('../../assets/json/undertale');
|
const characters = require('../../assets/json/undertale');
|
||||||
|
|
||||||
@@ -61,14 +60,12 @@ module.exports = class UndertaleCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'character',
|
key: 'character',
|
||||||
prompt: `What character do you want to use? Either ${list(characters, 'or')}.`,
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
oneOf: characters,
|
oneOf: characters,
|
||||||
parse: character => character.toLowerCase()
|
parse: character => character.toLowerCase()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'quote',
|
key: 'quote',
|
||||||
prompt: 'What should the character say?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 250
|
max: 250
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ module.exports = class ZeroDialogueCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'quote',
|
key: 'quote',
|
||||||
prompt: 'What should Zero say?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
max: 50
|
max: 50
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ module.exports = class AnalogClockCommand extends Command {
|
|||||||
{
|
{
|
||||||
key: 'timeZone',
|
key: 'timeZone',
|
||||||
label: 'time zone',
|
label: 'time zone',
|
||||||
prompt: 'Which time zone do you want to get the time of?',
|
|
||||||
type: 'timezone'
|
type: 'timezone'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ module.exports = class ApprovedCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ module.exports = class AsciiCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,14 +19,12 @@ module.exports = class BlurCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'radius',
|
key: 'radius',
|
||||||
prompt: 'What blur radius would you like to use?',
|
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
max: 180,
|
max: 180,
|
||||||
min: 1
|
min: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ module.exports = class BobRossCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ module.exports = class BrazzersCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ module.exports = class CharcoalCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,13 +19,11 @@ module.exports = class ChocolateMilkCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 1024 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 1024 })
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'direction',
|
key: 'direction',
|
||||||
prompt: 'What direction should the avatar face? Either right or left.',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
oneOf: ['left', 'right'],
|
oneOf: ['left', 'right'],
|
||||||
default: 'left',
|
default: 'left',
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ module.exports = class CircleCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'Which image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ module.exports = class ColorCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'color',
|
key: 'color',
|
||||||
prompt: 'What color do you want to view? This must be a #colorcode.',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
validate: color => /^#[0-9A-F]{6}$/i.test(color)
|
validate: color => /^#[0-9A-F]{6}$/i.test(color)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ module.exports = class CommunistCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ module.exports = class ContrastCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
const Command = require('../../framework/Command');
|
const Command = require('../../framework/Command');
|
||||||
const { createCanvas, loadImage } = require('canvas');
|
const { createCanvas, loadImage } = require('canvas');
|
||||||
const request = require('node-superfetch');
|
const request = require('node-superfetch');
|
||||||
const { list } = require('../../util/Util');
|
|
||||||
const formats = {
|
const formats = {
|
||||||
jpg: 'image/jpeg',
|
jpg: 'image/jpeg',
|
||||||
jpeg: 'image/jpeg',
|
jpeg: 'image/jpeg',
|
||||||
@@ -25,14 +24,12 @@ module.exports = class ConvertImageCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'format',
|
key: 'format',
|
||||||
prompt: `What format do you want to convert the image to? Either ${list(Object.keys(formats), 'or')}.`,
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
oneOf: Object.keys(formats),
|
oneOf: Object.keys(formats),
|
||||||
parse: format => format.toLowerCase()
|
parse: format => format.toLowerCase()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'Which image would you like to edit?',
|
|
||||||
type: 'image'
|
type: 'image'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ module.exports = class CreateQRCodeCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'text',
|
key: 'text',
|
||||||
prompt: 'What text would you like to convert to a QR Code?',
|
|
||||||
type: 'string'
|
type: 'string'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -19,12 +19,10 @@ module.exports = class DesaturateCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'level',
|
key: 'level',
|
||||||
prompt: 'What level of desaturation would you like to use?',
|
|
||||||
type: 'integer'
|
type: 'integer'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ module.exports = class DexterCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 256 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 256 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,12 +18,10 @@ module.exports = class DistortCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'level',
|
key: 'level',
|
||||||
prompt: 'What level of distortion would you like to use?',
|
|
||||||
type: 'integer'
|
type: 'integer'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ module.exports = class EmbossCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ module.exports = class FireFrameCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,14 +26,12 @@ module.exports = class FishEyeCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'level',
|
key: 'level',
|
||||||
prompt: 'What level of distortion would you like to use?',
|
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
min: 1,
|
min: 1,
|
||||||
max: 100
|
max: 100
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ const Command = require('../../framework/Command');
|
|||||||
const { createCanvas, loadImage } = require('canvas');
|
const { createCanvas, loadImage } = require('canvas');
|
||||||
const request = require('node-superfetch');
|
const request = require('node-superfetch');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { list } = require('../../util/Util');
|
|
||||||
const { centerImagePart } = require('../../util/Canvas');
|
const { centerImagePart } = require('../../util/Canvas');
|
||||||
const frames = require('../../assets/json/frame');
|
const frames = require('../../assets/json/frame');
|
||||||
|
|
||||||
@@ -30,14 +29,12 @@ module.exports = class FrameCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'frame',
|
key: 'frame',
|
||||||
prompt: `What kind of frame do you want to use? Either ${list(Object.keys(frames), 'or')}.`,
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
oneOf: Object.keys(frames),
|
oneOf: Object.keys(frames),
|
||||||
parse: frame => frames[frame.toLowerCase()]
|
parse: frame => frames[frame.toLowerCase()]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ module.exports = class GhostCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ module.exports = class GlassShatterCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ module.exports = class GlitchCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ module.exports = class GreyscaleCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ module.exports = class GunCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ module.exports = class HandsCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ module.exports = class IfunnyCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,14 +25,12 @@ module.exports = class ImplodeCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'level',
|
key: 'level',
|
||||||
prompt: 'What level would you like to use? From 1-100.',
|
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
min: 1,
|
min: 1,
|
||||||
max: 100
|
max: 100
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ module.exports = class InvertCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ module.exports = class LegoIconCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ module.exports = class LiquidRescaleCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
const Command = require('../../framework/Command');
|
const Command = require('../../framework/Command');
|
||||||
const { createCanvas, loadImage } = require('canvas');
|
const { createCanvas, loadImage } = require('canvas');
|
||||||
const request = require('node-superfetch');
|
const request = require('node-superfetch');
|
||||||
const { list } = require('../../util/Util');
|
|
||||||
const types = ['x', 'y', 'both'];
|
const types = ['x', 'y', 'both'];
|
||||||
|
|
||||||
module.exports = class MirrorCommand extends Command {
|
module.exports = class MirrorCommand extends Command {
|
||||||
@@ -19,14 +18,12 @@ module.exports = class MirrorCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'type',
|
key: 'type',
|
||||||
prompt: `What axis do you want to mirror? Either ${list(types, 'or')}.`,
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
oneOf: types,
|
oneOf: types,
|
||||||
parse: type => type.toLowerCase()
|
parse: type => type.toLowerCase()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ module.exports = class MotionBlurCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ module.exports = class NeedsMoreJpegCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'quality',
|
key: 'quality',
|
||||||
prompt: 'What quality should the resulting image use?',
|
|
||||||
type: 'float',
|
type: 'float',
|
||||||
default: 0.5,
|
default: 0.5,
|
||||||
min: 0.01,
|
min: 0.01,
|
||||||
@@ -26,7 +25,6 @@ module.exports = class NeedsMoreJpegCommand extends Command {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,14 +27,12 @@ module.exports = class NoiseCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'type',
|
key: 'type',
|
||||||
prompt: `What type of noise would you like to add? Either ${list(types, 'or')}.`,
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
oneOf: types,
|
oneOf: types,
|
||||||
default: 'poisson'
|
default: 'poisson'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ module.exports = class OilPaintingCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ module.exports = class PetCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 128 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 128 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ module.exports = class PixelizeCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ module.exports = class PokemonFusionCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'body',
|
key: 'body',
|
||||||
prompt: 'What Pokémon should be fused as the body?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: () => pokeKeys[Math.floor(Math.random() * pokeKeys.length)],
|
default: () => pokeKeys[Math.floor(Math.random() * pokeKeys.length)],
|
||||||
validate: body => {
|
validate: body => {
|
||||||
@@ -38,7 +37,6 @@ module.exports = class PokemonFusionCommand extends Command {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'palette',
|
key: 'palette',
|
||||||
prompt: 'What Pokémon should be fused as the palette?',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: () => pokeKeys[Math.floor(Math.random() * pokeKeys.length)],
|
default: () => pokeKeys[Math.floor(Math.random() * pokeKeys.length)],
|
||||||
validate: palette => {
|
validate: palette => {
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ module.exports = class PoliceTapeCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'image',
|
key: 'image',
|
||||||
prompt: 'What image would you like to edit?',
|
|
||||||
type: 'image-or-avatar',
|
type: 'image-or-avatar',
|
||||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 512 })
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user