diff --git a/commands/fun/explosm.js b/commands/fun/explosm.js new file mode 100644 index 00000000..b8f59d49 --- /dev/null +++ b/commands/fun/explosm.js @@ -0,0 +1,24 @@ +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; \ No newline at end of file