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

This commit is contained in:
Supositware 2019-03-23 19:04:30 +01:00
parent 7ed8c35072
commit 0bd0e6c248

View file

@ -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']});
}); });
}); });
} }