Files
xiao/commands/edit-text/superscript.js
T
Dragon Fire c61ae11679 Fix
2021-06-05 12:50:41 -04:00

27 lines
652 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',
memberName: 'superscript',
description: 'Converts text to tiny text.',
args: [
{
key: 'text',
prompt: 'What text would you like to convert to tiny text?',
type: 'string'
}
]
});
}
run(msg, { text }) {
return msg.say(letterTrans(text, dictionary));
}
};