Files
xiao/commands/edit-text/tebahpla.js
T
2024-05-21 21:02:12 -04:00

25 lines
563 B
JavaScript

const Command = require('../../framework/Command');
const { letterTrans } = require('custom-translate');
const dictionary = require('../../assets/json/tebahpla');
module.exports = class TebahplaCommand extends Command {
constructor(client) {
super(client, {
name: 'tebahpla',
aliases: ['reverse-alphabet', 'alphabet-reverse'],
group: 'edit-text',
description: 'Reverses the alphabet of text.',
args: [
{
key: 'text',
type: 'string'
}
]
});
}
run(msg, { text }) {
return msg.say(letterTrans(text, dictionary));
}
};