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

merge-requests/3/head
Supositware 5 years ago
parent 7ed8c35072
commit 0bd0e6c248

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