Compare commits
No commits in common. "4c5d879650687bfdc6ec913583a76b54ef601db9" and "8c6b06a3d055d8641b059bc751b9611125164b7f" have entirely different histories.
4c5d879650
...
8c6b06a3d0
2 changed files with 1 additions and 13 deletions
|
@ -8,7 +8,6 @@ export default {
|
|||
.setDescription('The bot you want to make an invite link for.')
|
||||
.setRequired(false)),
|
||||
category: 'utility',
|
||||
integration_types: [0, 1],
|
||||
async execute(interaction, args, client) {
|
||||
if (args.bot) {
|
||||
if (args.bot.user.bot) {
|
||||
|
|
|
@ -23,10 +23,6 @@ export default {
|
|||
option.setName('fps')
|
||||
.setDescription('Change the speed at which the gif play at. Default 20. Number between 1 and 100.')
|
||||
.setRequired(false))
|
||||
.addBooleanOption(option =>
|
||||
option.setName('autocrop')
|
||||
.setDescription('Autocrop borders on gif.')
|
||||
.setRequired(false))
|
||||
.addBooleanOption(option =>
|
||||
option.setName('noloop')
|
||||
.setDescription('Stop the gif from looping')
|
||||
|
@ -66,14 +62,7 @@ export default {
|
|||
utils.downloadVideo(url, interaction.id)
|
||||
.then(async () => {
|
||||
const file = fs.readdirSync(os.tmpdir()).filter(fn => fn.startsWith(interaction.id));
|
||||
let output = `${os.tmpdir()}/${file}`;
|
||||
|
||||
if (args.autocrop) {
|
||||
const oldOutput = output;
|
||||
output = `${os.tmpdir()}/autocrop${file}`;
|
||||
await utils.autoCrop(oldOutput, output);
|
||||
}
|
||||
|
||||
const output = `${os.tmpdir()}/${file}`;
|
||||
const gifskiOutput = output.replace(path.extname(output), '.gif');
|
||||
const gifsicleOutput = output.replace(path.extname(output), 'gifsicle.gif');
|
||||
|
||||
|
|
Loading…
Reference in a new issue