mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 15:57:43 +02:00
23
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
const Command = require('../../structures/Command');
|
||||
|
||||
module.exports = class ReverseCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'reverse',
|
||||
group: 'text-edit',
|
||||
memberName: 'reverse',
|
||||
description: 'Reverses text.',
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text would you like to reverse?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, args) {
|
||||
const { text } = args;
|
||||
const converted = text.split('').reverse().join('');
|
||||
return msg.say(`\u180E${converted}`);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user