mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
5 New Commands
This commit is contained in:
@@ -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}`] });
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user