mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 23:32:12 +02:00
26 lines
600 B
JavaScript
26 lines
600 B
JavaScript
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}`] });
|
|
}
|
|
};
|