forked from Supositware/Haha-Yes
Moved spb.js to general and image in the img folder
This commit is contained in:
parent
7ed8c35072
commit
0bd0e6c248
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue