mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
26 lines
565 B
JavaScript
26 lines
565 B
JavaScript
const Command = require('../../framework/Command');
|
|
const path = require('path');
|
|
|
|
module.exports = class SpamCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'spam',
|
|
group: 'single',
|
|
memberName: 'spam',
|
|
description: 'Responds with a picture of Spam.',
|
|
clientPermissions: ['ATTACH_FILES'],
|
|
credit: [
|
|
{
|
|
name: 'SPAM Brand',
|
|
url: 'https://www.spam.com/',
|
|
reason: 'Image'
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'spam.png')] });
|
|
}
|
|
};
|