mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
27 lines
642 B
JavaScript
27 lines
642 B
JavaScript
const { Command } = require('discord.js-commando');
|
|
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: 'text-edit',
|
|
memberName: 'superscript',
|
|
description: 'Makes text become tiny text.',
|
|
args: [
|
|
{
|
|
key: 'text',
|
|
prompt: 'What text would you like to make tiny?',
|
|
type: 'string'
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
run(msg, { text }) {
|
|
return msg.say(letterTrans(text, dictionary));
|
|
}
|
|
};
|