|
| 1 | +import { Command, CommandClient } from 'detritus-client'; |
| 2 | + |
| 3 | +import { CommandCategories } from '../../../constants'; |
| 4 | +import { Formatter } from '../../../utils'; |
| 5 | + |
| 6 | +import { BaseImageCommand } from '../basecommand'; |
| 7 | + |
| 8 | + |
| 9 | +export const COMMAND_NAME = 'glitch gif'; |
| 10 | + |
| 11 | +export default class GlitchGifCommand extends BaseImageCommand { |
| 12 | + constructor(client: CommandClient) { |
| 13 | + super(client, { |
| 14 | + name: COMMAND_NAME, |
| 15 | + |
| 16 | + args: [ |
| 17 | + {name: 'amount', type: Number}, |
| 18 | + {name: 'iterations', type: Number}, |
| 19 | + {name: 'seed', type: Number}, |
| 20 | + //{name: 'type'}, // theres glitch2, but maybe get rid of it? |
| 21 | + ], |
| 22 | + metadata: { |
| 23 | + category: CommandCategories.IMAGE, |
| 24 | + description: 'Glitch an Image/Gif', |
| 25 | + examples: [ |
| 26 | + COMMAND_NAME, |
| 27 | + `${COMMAND_NAME} notsobot`, |
| 28 | + `${COMMAND_NAME} notsobot -seed 68`, |
| 29 | + ], |
| 30 | + id: Formatter.Commands.ImageManipulationGlitchGif.COMMAND_ID, |
| 31 | + usage: '?<emoji,user:id|mention|name,url> (-amount <number>) (-iterations <number>) (-seed <number>)', // (-type <glitch-type>) |
| 32 | + }, |
| 33 | + }); |
| 34 | + } |
| 35 | + |
| 36 | + async run(context: Command.Context, args: Formatter.Commands.ImageManipulationGlitchGif.CommandArgs) { |
| 37 | + return Formatter.Commands.ImageManipulationGlitchGif.createMessage(context, args); |
| 38 | + } |
| 39 | +} |
0 commit comments