mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 23:32:12 +02:00
More uniform group names
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
const Command = require('../../structures/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));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user