Add the message author

Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
loicbersier 2020-07-26 13:53:36 +02:00
parent e2d46cf376
commit 0fb57f7243
4 changed files with 4 additions and 4 deletions

View file

@ -69,7 +69,7 @@ class cursesCommand extends Command {
}
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 => {
console.error(err);
return message.channel.send('Video is too big! try again with something smaller');

View file

@ -85,7 +85,7 @@ class vidshittyfierCommand extends Command {
ffmpegCommand.on('end', () => {
loadingmsg.delete();
message.delete();
return message.channel.send({files: [output2]})
return message.channel.send(`Shittyfied by ${message.author}`, {files: [output2]})
.catch(err => {
console.error(err);
return message.channel.send(`${err.name}: ${err.message} ${err.message === 'Request entity too large' ? 'The file size is too big' : ''}`);

View file

@ -57,7 +57,7 @@ class gif2vidCommand extends Command {
ffmpegCommand.on('end', () => {
loadingmsg.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 => {
console.error(err);
return message.channel.send(`${err.name}: ${err.message} ${err.message === 'Request entity too large' ? 'The file size is too big' : ''}`);

View file

@ -63,7 +63,7 @@ class vid2gifCommand extends Command {
ffmpegCommand.on('end', () => {
loadingmsg.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 => {
console.error(err);
return message.channel.send(`${err.name}: ${err.message} ${err.message === 'Request entity too large' ? 'The file size is too big' : ''}`);