5 New Commands

This commit is contained in:
Daniel Odendahl Jr
2017-09-25 03:00:44 +00:00
parent 928e3b503b
commit ca69138133
7 changed files with 189 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
const Command = require('../../structures/Command');
module.exports = class RobohashCommand extends Command {
constructor(client) {
super(client, {
name: 'robohash',
group: 'image-edit',
memberName: 'robohash',
description: 'Creates a robot based on the text you provide.',
clientPermissions: ['ATTACH_FILES'],
args: [
{
key: 'text',
prompt: 'What text should be used for generation?',
type: 'string',
parse: text => encodeURIComponent(text)
}
]
});
}
run(msg, { text }) {
return msg.say({ files: [`https://robohash.org/${text}`] });
}
};