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

25 lines
556 B
JavaScript

const Command = require('../../framework/Command');
const { letterTrans } = require('custom-translate');
const dictionary = require('../../assets/json/superscript');
module.exports = class SuperscriptCommand extends Command {
constructor(client) {
super(client, {
name: 'superscript',
aliases: ['tiny-text', 'small-text'],
group: 'edit-text',
description: 'Converts text to tiny text.',
args: [
{
key: 'text',
type: 'string'
}
]
});
}
run(msg, { text }) {
return msg.say(letterTrans(text, dictionary));
}
};