mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
Fix Everything
This commit is contained in:
@@ -11,8 +11,7 @@ module.exports = class ReverseCommand extends Command {
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text would you like to reverse?',
|
||||
type: 'string',
|
||||
parse: (text) => text.split('').reverse().join('')
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
@@ -20,6 +19,7 @@ module.exports = class ReverseCommand extends Command {
|
||||
|
||||
run(msg, args) {
|
||||
const { text } = args;
|
||||
return msg.say(`\u180E${text}`);
|
||||
const converted = text.split('').reverse().join('');
|
||||
return msg.say(`\u180E${converted}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user