Local Storage

This commit is contained in:
Daniel Odendahl Jr
2017-05-13 18:15:37 +00:00
parent 73ad340cb1
commit 82d3c6eeca
37 changed files with 113 additions and 135 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
const { Command } = require('discord.js-commando');
const path = require('path');
module.exports = class SpamCommand extends Command {
constructor(client) {
@@ -14,7 +15,7 @@ module.exports = class SpamCommand extends Command {
if (msg.channel.type !== 'dm')
if (!msg.channel.permissionsFor(this.client.user).has('ATTACH_FILES'))
return msg.say('This Command requires the `Attach Files` Permission.');
return msg.channel.send({ files: ['https://i.imgur.com/2JFu5xE.jpg'] })
return msg.channel.send({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'spam.png')] })
.catch(err => msg.say(err));
}
};