You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
543 B
JavaScript
24 lines
543 B
JavaScript
5 years ago
|
const { Command } = require('discord-akairo');
|
||
|
const extract = require('meta-extractor');
|
||
|
|
||
|
class explosmCommand extends Command {
|
||
|
constructor() {
|
||
|
super('explosm', {
|
||
|
aliases: ['explosm', 'rcg'],
|
||
|
category: 'fun',
|
||
|
description: {
|
||
|
content: 'Comic randomly generated from http://explosm.net/rcg',
|
||
|
usage: '',
|
||
|
examples: ['']
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
async exec(message) {
|
||
|
extract({ uri: 'http://explosm.net/rcg' }, (err, res) => {
|
||
|
return message.channel.send({files: [res.ogImage]});
|
||
|
});
|
||
|
}
|
||
|
|
||
|
}
|
||
|
module.exports = explosmCommand;
|