forked from Supositware/Haha-Yes
Add the message author
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
e2d46cf376
commit
0fb57f7243
4 changed files with 4 additions and 4 deletions
|
@ -69,7 +69,7 @@ class cursesCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.writeFileSync(`${os.tmpdir()}/cursed${message.id}${ext}`, Buffer.from(endResult, 'hex'));
|
fs.writeFileSync(`${os.tmpdir()}/cursed${message.id}${ext}`, Buffer.from(endResult, 'hex'));
|
||||||
return message.channel.send({files: [`${os.tmpdir()}/cursed${message.id}${ext}`]})
|
return message.channel.send(`Cursed by ${message.author}`, {files: [`${os.tmpdir()}/cursed${message.id}${ext}`]})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
return message.channel.send('Video is too big! try again with something smaller');
|
return message.channel.send('Video is too big! try again with something smaller');
|
||||||
|
|
|
@ -85,7 +85,7 @@ class vidshittyfierCommand extends Command {
|
||||||
ffmpegCommand.on('end', () => {
|
ffmpegCommand.on('end', () => {
|
||||||
loadingmsg.delete();
|
loadingmsg.delete();
|
||||||
message.delete();
|
message.delete();
|
||||||
return message.channel.send({files: [output2]})
|
return message.channel.send(`Shittyfied by ${message.author}`, {files: [output2]})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
return message.channel.send(`${err.name}: ${err.message} ${err.message === 'Request entity too large' ? 'The file size is too big' : ''}`);
|
return message.channel.send(`${err.name}: ${err.message} ${err.message === 'Request entity too large' ? 'The file size is too big' : ''}`);
|
||||||
|
|
|
@ -57,7 +57,7 @@ class gif2vidCommand extends Command {
|
||||||
ffmpegCommand.on('end', () => {
|
ffmpegCommand.on('end', () => {
|
||||||
loadingmsg.delete();
|
loadingmsg.delete();
|
||||||
message.delete();
|
message.delete();
|
||||||
return message.channel.send({files: [`${os.tmpdir()}/${message.id}g2v.mp4`]})
|
return message.channel.send(`Converted by ${message.author}`, {files: [`${os.tmpdir()}/${message.id}g2v.mp4`]})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
return message.channel.send(`${err.name}: ${err.message} ${err.message === 'Request entity too large' ? 'The file size is too big' : ''}`);
|
return message.channel.send(`${err.name}: ${err.message} ${err.message === 'Request entity too large' ? 'The file size is too big' : ''}`);
|
||||||
|
|
|
@ -63,7 +63,7 @@ class vid2gifCommand extends Command {
|
||||||
ffmpegCommand.on('end', () => {
|
ffmpegCommand.on('end', () => {
|
||||||
loadingmsg.delete();
|
loadingmsg.delete();
|
||||||
message.delete();
|
message.delete();
|
||||||
return message.channel.send({files: [`${os.tmpdir()}/${message.id}v2g.gif`]})
|
return message.channel.send(`Converted by ${message.author}`, {files: [`${os.tmpdir()}/${message.id}v2g.gif`]})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
return message.channel.send(`${err.name}: ${err.message} ${err.message === 'Request entity too large' ? 'The file size is too big' : ''}`);
|
return message.channel.send(`${err.name}: ${err.message} ${err.message === 'Request entity too large' ? 'The file size is too big' : ''}`);
|
||||||
|
|
Loading…
Reference in a new issue