1
0
Fork 0

Moved spb.js to general and image in the img folder

akairo
Supositware 5 years ago
parent 7ed8c35072
commit 0bd0e6c248

@ -6,7 +6,7 @@ class spbCommand extends Command {
constructor() { constructor() {
super('spb', { super('spb', {
aliases: ['spb'], aliases: ['spb'],
category: 'utility', category: 'general',
args: [ args: [
{ {
id: 'link', id: 'link',
@ -30,10 +30,10 @@ class spbCommand extends Command {
fetch(link) fetch(link)
.then(res => { .then(res => {
const dest = fs.createWriteStream('./spb.png'); const dest = fs.createWriteStream('./img/spb.png');
res.body.pipe(dest); res.body.pipe(dest);
dest.on('finish', () => { dest.on('finish', () => {
return message.channel.send({files: ['./spb.png']}); return message.channel.send({files: ['./img/spb.png']});
}); });
}); });
} }
Loading…
Cancel
Save